Multiple Gitter apps open on Ubuntu 16.10 (Unity)
Created by: jibbers42
When Gitter indicator is running but desktop UI closed, then when launching Gitter from the Dash or from icon locked to the Launcher, a second indicator will appear. This means I can't lock Gitter to the Launcher and reliably use it to open the desktop UI.
Gitter v3.1.0 Ubuntu Desktop 16.10
Steps to Reproduce:
- If indicator is not running then launch Gitter
- If desktop UI is open then close it
- Launch Gitter using Dash or using icon locked to Launcher
Expected Result: The desktop UI appears. The Gitter Launcher icon indicates the app is running.
Actual Result: A second indicator appears. Also, the GItter icon in the laucher flashes for a few seconds. If it was locked to the Launcher then it will stop flashing and give no indication the app is running. If it was not locked to the Launcher it will disappear.
I may be wrong about the following...
I think this has to do with not having a StartupWMClass
entry in the gitter.desktop file. If we check other apps, say Discord, we see StartupWMClass=discord
. It would be nice to just add StartupWMClass=gitter
, but the app has to report that value (somehow). You can lookup the WM_CLASS
using xprop WM_CLASS
from the terminal and then click the app with the mouse.
Discord gives:
==> xprop WM_CLASS
WM_CLASS(STRING) = "discord", "discord"
but, Gitter gives:
==> xprop WM_CLASS
WM_CLASS: not found.
So there is nothing to set the entry to. (Also note that StartupNotify=true
is a related entry that may be required if something like StartupWMClass=gitter
becomes valid)