Table of Contents
KDE uses several types of icons:
Documents
Links to Websites (using .desktop
file)
Links to Applications (using .desktop
file)
Devices - Disks, Partitions & Peripherals:
Explicit using .desktop
file
Automatic 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:
A single file name; used when dropping file on icon, or with file associations.
A list of files; use for applications that can open several local files at once.
A single URL: if the app can handle e.g. FTP or HTTP URLs itself, otherwise KDE.
A list of URLs; will download the file first and pass a local file to the app (!!)
The folder of the file to open; useful if app needs to have file in current working directory.
A list of folders, not very practical.
The icon; --icon
option; KDE app
will use icon from Icon
= line in taskbar.
The mini-icon; legacy.
The caption; --caption
option; KDE
app will use name from Name
= 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/DesktopLinks
Device Icons (dynamically merged)
Distribution Specific SUSE Linux copies certain icons
in startkde.theme from /opt/kde3/share/config/SuSE/default/