user-none / KDocker

Dock most applications to the system tray
GNU General Public License v2.0
316 stars 22 forks source link

Gitkraken: Tray icon dissapears after splash screen #65

Closed Zeioth closed 3 months ago

Zeioth commented 4 years ago

Severity: Medium

The command

kdocker gitkraken

It docks the program correctly, but after the splash screen, the tray icon dissapears.

More info: Distro: Manjaro Desktop environment: XFCE

Daxx commented 4 years ago

Has it ever worked for gitkraken?

Are you sure it's not just the same colour as your tray background (there but invisible)? try kdocker gitkraken -i /usr/share/icons/hicolor/32x32/apps/system-software-install.png or another icon

What's your version of KDocker? kdocker -v

Zeioth commented 4 years ago

No as far as I know. No, it's not tranparent/clickable and the docked process stops.

kdocker -v
qt5ct: using qt5ct plugin
KDocker version: 5.3
Using Qt version: 5.14.1
dJani97 commented 2 years ago

This is really similar to another issue I've had recently!

Here is the discussion on Reddit: https://www.reddit.com/r/kde/comments/x2zj9q/app_always_opens_as_2_instance_number_2_even_at/

From the answer:

This can happen sometimes when an app opens a loading window or splash screen before it opens its main window. If it gives the loading window and the main window the same title, then KDE adds <2> to the main window title so there's a way to distinguish them, but then when the loading window closes, the main window keeps the <2>.

GitKraken has a splash screen, and I'm sure that KDocker tries to track this splash screen and loses track of the main window.

There is a --show-splash-screen false flag in GitKraken's executable to disable it. I'm on KDE, so modifying GitKraken's /usr/share/applications/gitkraken.desktop entry to contain Exec=/usr/share/gitkraken/gitkraken %U --show-splash-screen false fixes this issue for me! I'm sure there is an XFCE equivalent.