toggldesktop icon indicating copy to clipboard operation
toggldesktop copied to clipboard

Incorrect label for StartupWMClass in the desktop file prevents adding application to favourites.

Open SuperJC710e opened this issue 3 years ago • 0 comments

💻 Environment

Platform: Linux OS Version: Solus 4.2 Budgie Toggl Version: 7.5.234 (Flatpak)

🐞 Actual behavior

Shortcut cannot be added to favourites in the taskbar.

💯 Expected behavior

Shortcut can be added to favourites in the taskbar.

🔨 Steps to reproduce

  1. flatpak install flathub com.toggl.TogglDesktop
  2. Run the application
  3. Try to add it to favourites in the Budgie Toolbar (Right-click icon, click on star - which is not available)

📦 Additional info

xprop | grep WM_CLASS
WM_CLASS(STRING) = "TogglDesktop", "Toggl Desktop"
grep WMClass /var/lib/flatpak/exports/share/applications/com.toggl.TogglDesktop.desktop
StartupWMClass=Toggl Track

Fix with desktop file override:

cp /var/lib/flatpak/exports/share/applications/com.toggl.TogglDesktop.desktop ~/.local/share/applications/
sed -i -e 's/\(StartupWMClass=\)[A-Za-z1-9 _-]*/\1TogglDesktop/g' ~/.local/share/applications/com.toggl.TogglDesktop.desktop

grep WMClass ~/.local/share/applications/com.toggl.TogglDesktop.desktop 
StartupWMClass=TogglDesktop

With fix in place, shortcut can be added to the taskbar favourites.

Can we make the change in the provided desktop file?

Thanks!

References

https://discuss.getsol.us/d/3227-in-budgie-some-flatpaks-won-t-save-to-the-panel

https://github.com/flathub/org.chromium.Chromium/pull/65

https://github.com/flathub/us.zoom.Zoom/pull/172

SuperJC710e avatar Apr 28 '21 13:04 SuperJC710e