You are not logged in.
Firefox marketplace has these new Desktop Web Apps that install with a click that are basically toolbar-less wrappers around a given website. The .desktop files that get installed have their own icons, and install into ~/.local/share/applications, properly. Its neat. They launch with a click like any proper .desktop file.
However XFCE isn't picking up their icons as stated in the .desktop file. The xfce_panel window buttons are showing a generic window icon instead. I checked the WM_CLASS using xprop and it has its own class that matches. Does anyone know where the window buttons panel plugin gets it icon mapping from? When I run xprop I get:
WM_CLASS(STRING) = "Webapprt", "Owa-clock-6003506a2decd8037b4648f33455a589"
And the .desktop file is:
[Desktop Entry]
Name=Clock
Comment=Displays the current Time. Featuring customizable Themes. Made by the Creator of Timer Tab.
Exec="/home/symple/.clock-6003506a2decd8037b4648f33455a589/webapprt-stub"
Icon=/home/symple/.clock-6003506a2decd8037b4648f33455a589/icon.png
Type=Application
StartupWMCLass="Owa-clock-6003506a2decd8037b4648f33455a589"
Terminal=false
What part does the window button pull its icon from? Or does anyone know how to redefine the window button icon based on the WM_CLASS? I've tried to redefine a bunch of apps just as a test and the Window Buttons plugin ignores changes to the WM_CLASS
Thanks in advance!
XFCE 4.10
Archlinux
Last edited by mezzoman (2014-08-04 20:32:53)
Offline
What part does the window button pull its icon from?
I believe that the window icon is pulled from the NET_WM_ICON hint. The application you indicate does not set this hint. There was this discussion from 2009 about a similar issue.
Or does anyone know how to redefine the window button icon based on the WM_CLASS?
I'm not sure about using WM_CLASS, but there is a package in the AUR, xseticon, that allows you to change this window icon. The following command worked for me:
xseticon -name "Clock" /home/toz/.icons/clock.png
I've used the information from this page to create a launcher for the Clock application that also changes its icon. The code I ended up using was:
#!/bin/bash
function clock-up {
sleep 1
activeWinLine=$(xprop -root | grep "_NET_ACTIVE_WINDOW(WINDOW)")
activeWinId="${activeWinLine:40}"
iconStore="$HOME/.icons"
xseticon -id "$activeWinId" "$iconStore/clock.png"
}
/home/toz/.clock-6003506a2decd8037b4648f33455a589/webapprt-stub & clock-up
If you want to discuss this with the developers, probably best to post to the xfce4-dev mailing list.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
I missed that nifty little program. Thanks a ton. Its interesting that the Firefox guys set out to specifically change their Webapp runtime to set the WM_CLASS property around FF 29. This would be for upstream, and I don't consider it a bug in XFCE. Firefox should just set the window icon to the Favicon/App icon on the web when in app mode and be done with it. Thanks again!
Offline
[ Generated in 0.014 seconds, 10 queries executed - Memory usage: 529.05 KiB (Peak: 530.34 KiB) ]