VectorLinux
July 23, 2014, 10:09:33 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: IceWM titlebar icon hack  (Read 13875 times)
roarde
Vectorian
****
Posts: 519


move the needle


« on: July 04, 2013, 11:53:22 am »

EDIT: This problem is fixed in a later version of IceWM. See next post.

Problem: After firefox upgrade, IceWM used the "default" icon in titlebar. Other WM's used the correct firefox icon.

The hack:
First, find the icon. If the Menu has it correct, that one should be fine. Firefox is on the "network" menu.
Code:
roarde:$ grep firefox ~/.icewm/menu-network
prog "Firefox" "/usr/share/icons/Faenza/apps/48/firefox.png" firefox

Put the icon where IceWM can find it
Code:
root:# cp /usr/share/icons/Faenza/apps/48/firefox.png /usr/share/icewm/icons

If Firefox (or whatever app you're working on) isn't running, start it. The icon will still be wrong, but we need it running for the next step.
Code:
roarde:$ xprop| grep WM_CLASS   # Click the crosshair on the Firefox window
WM_CLASS(STRING) = "Navigator", "Firefox"
(Could also have done 'xprop -name "Start new topic - Mozilla Firefox"| grep WM_CLASS' and avoided the clicking)

Now edit ~/.icewm/winoptions:
# This is an example for IceWM's window options file.
#
# Place your variants in /etc/icewm or in $HOME/.icewm
# since modifications to this file will be discarded when you
# (re)install icewm.

Navigator.Firefox.icon: firefox
xterm.icon: xterm
rxvt.icon: xterm
nxterm.icon: xterm
( . . .)


Log out, log in, start Firefox (or whatever). You should have the correct icon in its titlebar.

Come to think of it, Wicd's never had the right icon. Same deal, with a slight twist:
Found the icon in menu-network and copied it over as root. Got a Wicd window up.
Code:
roarde:$ xprop -name "Wicd Network Manager"| grep WM_CLASS
WM_CLASS(STRING) = "wicd-client.py", "Wicd-client.py"

The class strings have dots in them. Dot is used as a separator between class elements, so those dots need to be backquoted. The entry in ~/.icewm/winoptions looks like this:
# This is an example for IceWM's window options file.
#
# Place your variants in /etc/icewm or in $HOME/.icewm
# since modifications to this file will be discarded when you
# (re)install icewm.

wicd-client\.py.Wicd-client\.py.icon: wicd-gtk
Navigator.Firefox.icon: firefox
xterm.icon: xterm
rxvt.icon: xterm
(. . .)


Log out, log in.

No idea why all this is necessary, other than IceWM's age.

Or maybe it's this: http://sourceforge.net/p/icewm/bugs/845/
Don't really know.
« Last Edit: December 08, 2013, 06:39:14 pm by roarde » Logged

Robert
VL STD 7.1 RC2.2.2, icewmvmods
roarde
Vectorian
****
Posts: 519


move the needle


« Reply #1 on: December 08, 2013, 06:25:44 pm »

For VL 7.0, installing icewm-1.3.8 from the testing repo seems to solve this issue.
Logged

Robert
VL STD 7.1 RC2.2.2, icewmvmods
Mektub
Member
*
Posts: 1


« Reply #2 on: December 15, 2013, 04:37:25 pm »

For VL 7.0, installing icewm-1.3.8 from the testing repo seems to solve this issue.

With Archlinux even with version 1.3.8 it doesn't solve the issue.
And above solution doesn't either.

Doing a icewm restart does show the assigned icon in winoptions for a couple of seconds, but it then reverts to the generic one.

I think this shows the icewm age.

I am testing jwm, to see if it is a viable alternative.

Mektub
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!