Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing icon on Wayland #154

Open
SamuXzX opened this issue Jun 21, 2024 · 6 comments
Open

Missing icon on Wayland #154

SamuXzX opened this issue Jun 21, 2024 · 6 comments
Labels
question Further information is requested

Comments

@SamuXzX
Copy link

SamuXzX commented Jun 21, 2024

I wrote on Anki's forum to ask about this, and they told me to ask the Flatpak author. I suppose here is the right spot.
I intalled Anki on Fedora 40 with Plasma 6.0.
The default protocol is Wayland and I only see the default Wayland icon:
immagine

Anki’s Flatpak version is 24.06.2
Plasma’s version is 6.0.5
Qt is 6.7.1

@rayes0
Copy link
Collaborator

rayes0 commented Jun 26, 2024

I cannot reproduce this. Does this only occur with the Anki flatpak, or every other flatpak as well?

Please check the contents of $XDG_DATA_DIRS, and ensure that it contains the flatpak icon export path. For what is supposed to happen with icons in flatpak, read here: https://docs.flatpak.org/en/latest/conventions.html#application-icons

@rayes0 rayes0 added the question Further information is requested label Jun 26, 2024
@FrankAlbella
Copy link

I am also able to reproduce on Plasma 6.1.2, Qt 6.7.2. The icon shows up normally in the application launcher, but not in the taskbar or the Anki's titlebar. Other flatpak apps are not missing their icons. The contents of my $XDG_DATA_DIRS looks like this:

$ echo $XDG_DATA_DIRS
/home/frank/.local/share/flatpak/exports/share /var/lib/flatpak/exports/share /usr/local/share /usr/share

@FrankAlbella
Copy link

FrankAlbella commented Aug 9, 2024

It might be because the resource name (WM class) isn't set, so it can't match the window to the .desktop file?
image

@n3thshan
Copy link

Can confirm missing icon on KDE plasma ver 6.1.4 with latest version of anki flatpak. However, on gnome, this was not an issue. Please resolve this. Thank you!

@aug-dev
Copy link

aug-dev commented Sep 1, 2024

image

Hey there!

I can confirm the same issue using KDE Plasma 6.1.4 with Fedora 40.

@n3thshan
Copy link

n3thshan commented Sep 1, 2024

Hey! I found a fix. If any of ur apps suffer from this on KDE, right click on the title bar>Configure Special Application Settings>Add Property>Desktop File Name (all the way at the bottom, click on the plus sign)

Then for the value of that property you should type the actual name of the app as defined in the .desktop file. So for anki thats net.ankiweb.Anki. Type this without the .desktop part and apply the settings. Thats it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants