Orangevolt ANT Tasks » Tasks » Unix related tasks
ExampleElement property

2.11.3.  unix.kde.shortcut

unix.kde.shortcut creates a KDE shortcut file. KDE shortcut files are similar to shortcut files used in windows. They are used to define icon, command, label etc. of a desktop/program menu entry.

Using unix.kde.shortcut in consumption with unix.properties you are able to create desktop and program menu entries for the KDE desktop environment.

Attributes

Name Description Required
execute The command to execute. execute can also be defined using inner element <execute>. yes (if type Application is used)
workingDir The working directory where to execute the command. The workingdirectory can also be defined using inner element <workingdirectory>. yes (if type Application is used)
url The url to open. Use this parameter to create a shortcut to a document. yes (if type Link is used)
name The title of the shortcut. The name is the default shortcut title used by KDE. If you want to create a localized shortcut you can use the <property> inner element. yes
file

The shortcut file to create. If the file doesnt end with suffix .desktop (the default suffix for KDE shortcuts) it will be appended.

If a parent folder of the file doesnt exist it will be created.

yes
type

The type of the shortcut. Valid types are Application and Link.

If using Application parameter execute and workingDirectory are required. In case of type Link the url parameter is required.

type defaults to Application.

no
comment The comment for this shortcut, Usually used to display tooltips. no
icon The icon to use. The icon refers to an icon in the KDE icon directory. no
iconfile The icon to use. Using this iconfile an icon residing somewhere in the filessystem will be used. no
terminal Execute command using a terminal or without terminal. Valid values are true or false. no
terminaloptions if terminal is true using this attribute you can define additional terminal options. no