user-none / KDocker

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

Tray icon is always a question mark #81

Closed Victor239 closed 3 months ago

Victor239 commented 4 years ago

How do I get KDocker to use the unique desktop icon for each application?

If I use the "Set Icon" option by right-clicking the docked application I can set the icon temporarily, but when the application is closed and then reopened it will be back to the question mark icon again.

Justinzobel commented 4 years ago

I've got the same issue here with 5.3 release.

Justinzobel commented 4 years ago

Is it possible to save preferences for each application that is docked to ~/.config/KDockerrc?

Daxx commented 3 years ago

For version 5.1 and above, per-application and global settings are stored wherever Qt defaults to. For me, it's "~/.config/com.kdocker/KDocker.conf" but there's no need to edit that.

Set Icon ... ( e.g. for "DockedApp4" ) Save settings ... ( "DockedApp4 only" option -- because Global (all new) would be silly ;) )

Justinzobel commented 3 years ago

OK, so there seems to be a bug in the menu display.

The first time I right-click on a docked icon I get the below, the Save settings item is cut off: image

The second time I right-click on the docked icon I get the full menu with the Save settings item.

Not sure if this is a Plasma/kwin issue or kdocker.

Daxx commented 3 years ago

Wow, that's awful. I've never seen that from KDocker or from any other app that I can recall. I rely on QMenu to do all those calculations for me. No warnings in the docs. I assume you compiled it yourself; please show kdocker -v output for Qt version.

Not much help from these search results: QMenu opens first time off screen How to prevent QMenu from going out of the main window

Justinzobel commented 3 years ago

I didn't compile myself, this one is from the Solus repository.

kdocker -v
KDocker version: 5.2
Using Qt version: 5.15.2

How it's compiled by the Solus team: https://dev.getsol.us/source/kdocker/browse/master/package.yml

Justinzobel commented 3 years ago

I might compile 5.3 and test.

Justinzobel commented 3 years ago

Same with 5.3 unfortunately.

user-none commented 3 months ago

5.5 has changes to how the tray icon is read from the window and works better now.