KDE uses several types of icons:
-
Documents
-
Links to Websites (using .desktop
file)
-
Links to Applications (using .desktop
file)
-
Devices - Disks, Partitions & Peripherals:
-
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=https://www.kde.org/
The Exec
option in .desktop
files
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;
--icon
option; KDE app
will use icon from Icon
= line in taskbar.
-
%m
-
The mini-icon; legacy.
-
%c
-
The caption;
--caption
option; KDE
app will use name from Name
= line in
taskbar.
Links to Devices using .desktop
file:
o Create New -> Device
Many places to define Desktop Icons:
-
~/Desktop
:
copied from /etc/skel/Desktop
-
$
KDEDIR
/apps/kdesktop/Desktop
(merged)
-
$
KDEDIR
/apps/kdesktop/DesktopLinks
(copied)
-
Device Icons (dynamically
merged)
-
Distribution Specific SUSE Linux copies certain icons
in startkde.theme from /opt/kde3/share/config/SuSE/default/