ankurk91 / google-chat-electron

An unofficial desktop app for Google Chat :electron:
GNU General Public License v3.0
162 stars 49 forks source link

Add StartupWMClass line to .desktop #30

Closed aia832003 closed 2 years ago

aia832003 commented 3 years ago

In standard GNOME for Fedora and other variants the current desk top file results in two icons if added to the dock as a Favorite and app window is in focus. Adding StartupWMClass=google-chat-electron to the file fixes the issue. Screenshots included. Screenshot-20210831095323-1600x900 Screenshot-20210831095241-952x799

aia832003 commented 3 years ago

Image of fixed dock layout.

Screenshot-20210831104704-1600x900

ankurk91 commented 3 years ago

I will try to replicate the issue on Ubuntu 20 Gnome

aia832003 commented 3 years ago

Thanks @ankurk91

ankurk91 commented 3 years ago

I could not re-produce the issue on Ubuntu 20.4 GNOME. The only change i have made is, moved the Ubuntu dock to bottom, everything else is default settings. See screenshot. Screenshot from 2021-09-03 10-59-39

aia832003 commented 3 years ago

Thank you Ankur. This seems to only affect Fedora. I can reproduce on both my machines running Fedora 34. I also don't see it on Ubuntu-based distros like Pop and Elementary. I can confirm add the StartWMClass line in /var/lib/snapd/desktop/applications file fixes with Fedora on both machines.

aia832003 commented 3 years ago

Can also confirm that each update overwrites the manual addition of the fixed line from .desktop file. Any way this can be added for Fedora users?

ankurk91 commented 3 years ago

I could not find any proper way to alter the . desktop file when building snap package

ankurk91 commented 2 years ago

Out of 2951 users (snapcraft), only 11 users are using this app on Fedora. I don't see it worth putting efforts to fix this glitch