Re: How to use all icon themes from /usr/share/icons?

"Torsten Rahn \(KDE\)" <[email protected]> Sat, 6 Aug 2005 03:42:06 +0200
Newsgroups gmane.comp.kde.look
Organization KDE
Message-ID <[email protected]>
Am Freitag, 5. August 2005 04:11 schrieb roach:
> > under /usr/share/icons I can see many (exactly 28 :) folders with icon
> > themes, but in the KDE Control Center I can only choose from 9 icon
> > themes... This is a Debian Sarge with KDE 3.3 and Gnome and lots of
> > other stuff installed, so that's probably why there are so many icon
> > themes installed.

Just those icon themes which have an index.theme file in =


/usr/share/icons/{iconthemename} =


will show up correctly in the KDE Control Center.

> I'd be curious to know where you got you icons from? I suffer from a
> shortage of icons. :-(

www.kde-look.org is your friend. Have a look at the icon theme section.

> I don't think that Debian KDE stores it's icons under /usr/share/icons, I
> thought they were in /opt/kde3/share/icons/ and Gnome's were

No. Debian (packages) install KDE in /usr/share/icons.

Other Distributions (like SUSE) install them in /opt/kde3.
Both works. If you should build KDE yourself from sources one day, take car=
e =

that you specify the correct prefix by executing

./configure --prefix=3D/usr

or =


./configure --prefix=3D/opt/kde3

before you run make and make install to make sure that KDE gets installed i=
n =

the correct place.

> in /opt/gnome/share/icons/. Normally the icons in /usr/share/icons are for
> particular programs and not icon themes.

No. Application specific icons for KDE and Gnome are stored =

in /usr/share/apps/{program name}/icons

Applications which don't honor the icon freedesktop standard sometimes inst=
all =

their pixmaps in /usr/share/pixmaps. But this rarely happens these days.

> > Now how do I select these icon themes in the Control Center?
> You don't.

Usually each icon theme has got an index.theme file. If this is the case yo=
u =

can select the icon theme file in kcontrol's icon dialog which you can also =

get by typing

kcmshell icons

on the command line. =


> > Why are some icon sets displayed there and others are not?
> Only KDE's icon themes are displayed there.

Wrong. See comment about index.theme file above.

> > And, as we are at it already :) , is there a "standard" for the single
> > icon names which all icon themes do respect?

See

http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html

> Normally application foo =3D icon foo, e.g.:

While this is often the case the name of the icon is specified in icon-sect=
ion =

of the application's .desktop file which you will find in =


/usr/share/applications/(kde) =


For old applications you might find them in the subdirectories in =


/usr/share/applnk =


which is depricated though.

> ark will have an icon called ark.* [ark.png | ark.xpm]
>
> KDE will look for an icon matching the name of the app, even if it is not
> explicitly stated.

No. It will look for the icon name specified in the application's .desktop =

file. (See =

http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-0.9.=
4.html )

You'll get a list of the directories which KDE will search through (includi=
ng =

any subdirectories) by typing =


kde-config --path icon

on the command line.

> BTW, some apps explicitly state which icon to use. I have had a few apps
> that expected foo.xpm, even though it didn't exist and therefore ignored
> the PNG that did.

This is mostly the case for some applets where the iconnames are hardcoded =

(which is evil (TM)). =


> If you've downloaded some icon themes for KDE and installed them, you'll
> find them stored in ~/.kde/share/icons/

.. if you installed them as a user or in =


/usr/share/icons =


if you installed them systemwide as root.

Mit freundlichen Gr=FC=DFen / Kind regards,

        Torsten Rahn

-- =

Torsten Rahn <[email protected]>
http://www.kde.org