This forum has been archived. All content is frozen. Please use KDE Discuss instead.

utilty for getting a specific icon per theme?

Tags: None
(comma "," separated)
bonassis
Registered Member
Posts
59
Karma
0
OS
Hello,

I'm working on a construction based on a fuse fs, pamchroot, autofs and some others to provide the user an environment like GoboLinux. The root looks like:

/Computer
/Home
/Mounts
/Network
/System

the standard directories /bin, dev and etc etcetera are there but hidden.

More info:

http://linux.bononline.nl/wiki/index.php/Mount.md5key

especially

http://linux.bononline.nl/wiki/index.ph ... and_issues

for latest changes and screenshots.

To get the right visual feedback (and other features) in KDE, this construction supports .directory files. This visual feedback is very very important.

The icon is important here of course (duh). For example, a smb server is represented by the icon nuvola/128x128/places/network-server.png.

Right now I'm setting this icon in a system wide configuration file, which can be overriden by a user conf file.

To be more flexible, is there an utility to get the icon per theme like:

get_icon_for_theme --theme=nuvola --name=networkserver

this would then result in the icon above.

Stef Bon
Voorburg
the Netherlands
airdrik
Registered Member
Posts
1854
Karma
5
OS
I don't know of such a utility (and I would think it would be pretty easy to make a bash file to throw together), however I would like to know why you are putting the icons (full path) in a per-user/system configuration file rather than using the Icon=(icon name) (e.g. Icon=network-server) entry in the .desktop file? Is there a reason why you need the theme-specific icon, or would it be sufficient to just set the icon name and let the theme determine which actual icon is used?


airdrik, proud to be a member of KDE forums since 2008-Dec.
bonassis
Registered Member
Posts
59
Karma
0
OS
Good question.

The reason to provide the full path is that I sometimes prefer the icons from the nuvola, and sometimes from oxygen (in the construction I use).

So therefore the full path, and not letting the environment find out, when a theme is default. When oxygen is the default, nuvola icons are never taken.


Well, it's sort of not necessary I guess.
My construction needs various icons, and some where there has to be made a match between the special map (or beter: role) and the icon. I think the utilty I'm asking for solves nothing.

Stef
airdrik
Registered Member
Posts
1854
Karma
5
OS
You could make a new icon theme and take which icons you want from the two themes. Then, depending on your level of ambition (time, skill, etc, or if you can find a good icon artist), you could customize some of the icons with your distro's logo.


airdrik, proud to be a member of KDE forums since 2008-Dec.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]