You are not logged in.

#1 2008-04-08 20:01:58

fflarex
Member
Registered: 2007-09-15
Posts: 466

changing program icons without touching the source...

So, fbpanel and pypanel let you change the icons for apps that appear in the window decorations and panels, but is there a way to do this without a panel? I figure there must be some wm-neutral way, since that's what these programs do, but an openbox-specific answer would be okay too.

Offline

#2 2008-04-08 20:16:16

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: changing program icons without touching the source...

The icon information is stored in the .desktop files. Globally they're in /usr/share/applications. For single users they're stored in ~/.local/share/applications. You can modify them in any text editor.

Offline

#3 2008-04-08 22:04:41

fflarex
Member
Registered: 2007-09-15
Posts: 466

Re: changing program icons without touching the source...

Either you weren't specific enough, or I didn't make myself quite clear. I meant the icons shown in the window decorations of a window manager. I tried changing the .desktop files and all it did was change the icon in my applications menu. In particular, I tried changing the "Icon=x" line.

Offline

#4 2008-04-09 01:08:33

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: changing program icons without touching the source...

Sorry about that. It happens automatically in E17, so I assumed it was like that for other WM.

Offline

#5 2008-04-09 16:24:40

_alexmyself
Member
From: france
Registered: 2005-09-18
Posts: 89

Re: changing program icons without touching the source...

don't remember exactly, but what you want need to be added on the command line in .desktop for each apps.
something like: command --icon /path/to/somewhere
maybe it's not a word but special code like %u or %U or....
this exists specifically for giving alternative icons to be used by window,
problem is that doc on the xdg stuff is a bit rare....
i'll have a quick look for doc, but i think the best you can do is to find a .desktop with an icon path on the command line and use it as an example.

Offline

#6 2008-04-09 16:37:01

_alexmyself
Member
From: france
Registered: 2005-09-18
Posts: 89

Re: changing program icons without touching the source...

found it in an old script of mine:
.desktop code for using this is: %i
this %i have to be replaced by: --icon /path/to/it
normally you can add this to every .desktop you want, put it at the place of the %i or at the end of the command line

Offline

#7 2008-04-09 20:51:31

fflarex
Member
Registered: 2007-09-15
Posts: 466

Re: changing program icons without touching the source...

Hrm... can you give an example? I'm not sure I fully understood what you just said.

Offline

Board footer

Powered by FluxBB