trackma icon indicating copy to clipboard operation
trackma copied to clipboard

App icon breaks under Wayland [Kde]

Open alsoGAMER opened this issue 1 year ago • 6 comments

Steps to reproduce:

  • Start a plasma wayland session.
  • Open trackma(qt).
  • Observe.

Reported behaviour:

  • The app isn't showing its icon in the taskbar nor in the top-left corner of the application window, the wayland one is shown instead.

Screenshots and app version: window taskbar

Package trackma-git built on chaotic-aur Version 0.8.4.r191.g0a2558e-1

alsoGAMER avatar Sep 11 '22 12:09 alsoGAMER

Does this also occur with the GTK UI?

FichteFoll avatar Sep 12 '22 11:09 FichteFoll

Does this also occur with the GTK UI?

Sadly I can't test that, cause that version crashes instantly every time that I try to open it.

alsoGAMER avatar Sep 12 '22 13:09 alsoGAMER

Please open it from the terminal via trackma-gtk -d and post the output. That definitely shouldn't happen.

FichteFoll avatar Sep 13 '22 00:09 FichteFoll

Please open it from the terminal via trackma-gtk -d and post the output. That definitely shouldn't happen.

Doesn't happen anymore, I guess it was caused by some broken system update, that now fixed itself. The icon works for the GTK variant though.

alsoGAMER avatar Sep 13 '22 13:09 alsoGAMER

Maybe a bug fixed in Qt6? Seems doubtful though. I remember using the standard Qt way to set the application icon, but I have no way to test under Wayland (thanks NVIDIA)...

z411 avatar Sep 13 '22 13:09 z411

I could test if you want to (and if you have any qt6 variant already done).

alsoGAMER avatar Sep 13 '22 13:09 alsoGAMER

#654 Fixed it for the panel's icons-only task manager for me, ~~but unfortunately I don't know how to fix the icon in the title bar.~~ A couple applications I wrote in PyQt had both broken as well, and the same solution fixed both locations for those applications, ~~but for some reason it's not fixing it in the title bar for Trackma. I'd like to fix the problem fully, but my Google-fu doesn't seem to be advanced enough to do so.~~

Edit: I eventually found a way to get it fixed in both locations with Trackma.

KodyVB avatar Nov 02 '22 21:11 KodyVB

The icon has been working fine for me on Sway on Arch.

txtsd avatar Nov 03 '22 04:11 txtsd

@txtsd I've been experiencing the issues on KDE's Wayland, as with the original issue. Would you be up for testing whether or not changing app.setDesktopFileName("trackma") to app.setDesktopFileName("trackma-qt") in line 76 of trackma/ui/qt/__init__.py breaks the icon for you as a Sway user?

KodyVB avatar Nov 03 '22 04:11 KodyVB

~~Hold up. I was looking in the tray, where the icon is correct. The app icon in the taskbar, however, is neither correct in 0.8.5, nor in #654 with the change you mentioned.~~ EDIT: Wrong yet again. My theme just has a strange icon for trackma which I saw in the taskbar. My tray icon is the MAL icon. It has indeed been working fine, and changing setDesktopFileName doesn't change the behavior.

txtsd avatar Nov 03 '22 05:11 txtsd

fixed via 7d69f70

alsoGAMER avatar Nov 21 '22 19:11 alsoGAMER