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

AppImage down show the correct icon in Gnome dock #84

Open
sezaru opened this issue May 31, 2024 · 3 comments
Open

AppImage down show the correct icon in Gnome dock #84

sezaru opened this issue May 31, 2024 · 3 comments

Comments

@sezaru
Copy link

sezaru commented May 31, 2024

I use gearlever to install https://github.com/jeffvli/feishin which is only released as a appimage.

The issue is that the app icon is not used when the app is open in Gnome.

Here is the app icon correctly used in the gnome app list:

image

Here is the icon it uses when the app is open in the dock:

image

Even if I try to pin the app, it will still create a new icon in the dock instead of using the pinned one:

image

@BrodyB
Copy link

BrodyB commented Aug 3, 2024

I'm also experiencing this. The funny thing is: Gear Lever seems to be doing things correctly. It created a .desktop file in the right place, that .desktop file has an Icon= property that points to an icon folder inside the AppImages directory, and that icon exists. I can't figure out why it doesn't show up in the dash.

  • Gear Lever 2.0.1 (Flatpak)
  • Bazzite (derived from Fedora Silverblue 40)
  • Gnome 46.3.1

@mijorus
Copy link
Owner

mijorus commented Aug 4, 2024

I can't either

@BrodyB
Copy link

BrodyB commented Aug 11, 2024

Found the solution. Perhaps this is an issue that's cropped up with recent versions of Gnome.

ItsFOSS

In short:
.desktop files need to have one more property added for the icon and application name to show properly on the dock, for whatever reason.

  1. In Terminal, type xprop WM_CLASS
  2. Click on the application you want to mend
  3. The Terminal will show you one or more string values for the id of the application (i.e. WM_CLASS(STRING) = "sayonara", "com.sayonara-player.Sayonara")
  4. In the .desktop file, add a StartupWMClass property with one of those strings (i.e. StartupWMClass=sayonara)
  5. Once you save the file, Gnome will refresh in a few seconds and the tray/dock icon will appear.

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

No branches or pull requests

3 participants