Le 16/04/2023 à 18:21, Landry Breuil a écrit :
Le Fri, Apr 14, 2023 at 09:49:38AM +0200, Joel Carnat a écrit :
Only the Exec part:
# diff /usr/local/share/applications/firefox.desktop
~/.local/share/applications/firefox.desktop
153c153
< Exec=firefox %u
---
Exec=firefox-default %u
200c200
< Exec=firefox -new-window
---
Exec=firefox-default -new-window
219c219
< Exec=firefox -private-window
---
Exec=firefox-default -private-window
Sorry, but i dont think that makes sense. Unless there's a
'firefox-default' script/wrapper in your $PATH, i doubt that can work.
or the /usr/local/share/applications/firefox.desktop file takes
precedence because ~/.local/share/applications/firefox.desktop has an
invalid entry for Exec
Well, I have no clue why it works. It just does (here) :D
I can even open ~/.local/share/applications/firefox.desktop, replace
"Exec=firefox-default %u" with "Exec=firefox %u", save the file, and the
icon changes on docklike. Reversing the change makes the icon appear on
docklike.
(oh, and diff -u is always more readable ;)
sorry for that.
you'd have told me firefox --class=firefox to override the default 'wm
class' set to 'firefox-default', i'd have understood..
Anyway, for firefox, to my understanding this comes from
https://bugzilla.mozilla.org/show_bug.cgi?id=1530052. To be
investigated.
I copied /usr/local/share/applications/xfce4-terminal.desktop into
~/.local/share/applications/xterm.desktop, remove a bunch of translations I
don't use and modify the Exec part:
# cat ~/.local/share/applications/xterm.desktop
ok but that's a different issue, there's no 'default' desktop file for
xterm. not xfce4-docklike problems :)
Yes, you're right. I was surprised because xfce/tasklist did apply an
icon to xterm even without a desktop file. But I found tasklist would
use the info from the XTerm*iconHint xresource, whereas docklike didn't.
That's why I thought it was docklike's fault.