

Table of Contents
KDE uses several types of icons:
Documents
Links to Websites (using
.desktopfile)Links to Applications (using
.desktopfile)Devices - Disks, Partitions & Peripherals:
Explicit using
.desktopfileAutomatic via devices:// io-slave
Vendor-specific (e.g. SuSE®'s My Computer)
Links to Websites using .desktop
file: ->->. Change Icon using
Properties dialogs. The resulting .desktop file:
[Desktop Entry] Encoding=UTF-8 Icon=/opt/kde3/share/apps/kdesktop/pics/ksslogo.png Type=Link URL=http://www.kde.org/
Links to Applications using .desktop file: ->->. You must provide details
yourself. Drag from KDE Menu: Either copy or link (creates symlink),
much easier
[Desktop Entry]Encoding=UTF-8 GenericName=IRC Client
GenericName[af]=Irc Kliėt GenericName[de]=IRC Programm ... GenericName[zu]=Umthengi we IRC
SwallowExec=
Name=KSirc Name[af]=Ksirc Name[de]=KSirc ...
| Boiler plate |
| Translated generic description, not used on desktop |
| Legacy, can be removed |
| Translated name as it appears on desktop |
Desktop Icons
... Name[zu]=Ksirc MimeType=Exec=ksirc %i %m
Icon=ksirc
TerminalOptions=
Path=
Type=Application
Terminal=0
X-KDE-StartupNotify=true
X-DCOP-ServiceType=Multi
Categories=Qt;KDE;Network
![]()
Following the command, you can have several place holders which will be replaced with the actual values when the actual program is run:
- %f
A single file name; used when dropping file on icon, or with file associations.
- %F
A list of files; use for applications that can open several local files at once.
- %u
A single URL: if the app can handle e.g. FTP or HTTP URLs itself, otherwise KDE.
- %U
A list of URLs; will download the file first and pass a local file to the app (!!)
- %d
The folder of the file to open; useful if app needs to have file in current working directory.
- %D
A list of folders, not very practical.
- %i
The icon;
--iconoption; KDE app will use icon fromIcon= line in taskbar.- %m
The mini-icon; legacy.
- %c
The caption;
--captionoption; KDE app will use name fromName= line in taskbar.
Examples:
Exec line: ksirc %iExec line: cd %d; kedit $(basename %f)
Many places to define Desktop Icons:
~/Desktop: copied from/etc/skel/Desktop$(merged)KDEDIR/apps/kdesktop/Desktop$(copied)KDEDIR/apps/kdesktop/DesktopLinksDevice Icons (dynamically merged)
Distribution Specific SUSE Linux copies certain icons in startkde.theme from
/opt/kde3/share/config/SuSE/default/
Encoding=UTF-8
GenericName=IRC Client
GenericName[af]=Irc Kliėt
GenericName[de]=IRC Programm
...
GenericName[zu]=Umthengi we IRC
SwallowExec=
Name=KSirc
Name[af]=Ksirc
Name[de]=KSirc
...
Type=Application
Terminal=0
X-KDE-StartupNotify=true
X-DCOP-ServiceType=Multi
Categories=Qt;KDE;Network

