mijorus / gearlever

Manage AppImages with ease 📦
https://mijorus.it/projects/gearlever
GNU General Public License v3.0
429 stars 15 forks source link

AppImage down show the correct icon in Gnome dock #84

Open sezaru opened 2 months ago

sezaru commented 2 months ago

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 commented 2 weeks ago

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.

mijorus commented 2 weeks ago

I can't either

BrodyB commented 1 week ago

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.