dash-to-dock
dash-to-dock copied to clipboard
[Feature Request] Distinguish same app with different arguments launched by different .desktop files
In addition to the default FireFox desktop entry that was created by the package, I have added a new shortcut for a secondary profile with Eexc=/usr/lib/firefox/firefox -P "secondary" %u in ~/.local/share/applications. I think most other browsers also support having multiple profiles and passing profile name as an argument.
It seems that DtD does not distinguish the two .desktop shortcuts. My guess is that it uses the first .desktop file that matches the process' name. Since a recent system update, in Gnome Application list, my secondary-profile FireFox icon is listed before the package's FireFox, so even if I launch FireFox with the main profile, DtD displays it as the secondary profile .desktop.
I wonder if it is possible for DtD to distinguish the same app with different parameters launched by different .desktop files.
This is something that should be submitted upstream, however for the specific case, I'm not sure if you can just use --class foobar in the Exec and then in your new desktop file use StartupWmClass=foobar and the shell should match them
I have tried the following in my .desktop shortcut, but it was grouped together with the default FireFox shortcut (created by the package). Did I do something wrong?
Exec=/usr/lib/firefox/firefox --class firefox2 -P "profile2" %u
StartupWMClass=firefox2