Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ubuntu - Right way to craft a .desktop entry for the AppImage
#1
Background: I've downloaded GIMP-3.0.6-x86_64.AppImage onto my Ubuntu 24.04.3 LTS box, then created a .local/share/applications/GIMP.desktop file with the following content...

[Desktop Entry]
Version=1.0
Name=GIMP
Exec=/home/mark/Applications/GIMP-3.0.6-x86_64.AppImage
Icon=/home/mark/.local/share/GIMP.png
Terminal=false
Type=Application
Categories=Graphics;


... and then pinned it to the left sidebar (the "dash") searching for it in the app launcher, right-clicking it, and clicking "Pin to Dash".

It... sort of works. I see the icon in my sidebar:

[Image: BpAd6NW.jpeg]

And when I click on that icon, GIMP opens. But GNOME doesn't seem to understand that the newly opened window is associated with the GIMP program whose sidebar shortcut I just clicked on. Instead, it creates a new, temporary shortcut, with a generic gear icon, in the bottom section of the dash:

[Image: SmVwbcQ.jpeg]

This behaviour differs from other AppImage-based applications I've created .desktop files for. For instance, if I open multiple windows of Zed, I see three orange dots next to my Zed icon in my sidebar, and I can right-click on the sidebar icon and go to "All Windows" to see all the open Zed windows I have open:

[Image: 8mD9TsS.jpeg]

How - if at all - can I likewise make my open GIMP window be represented by an orange dot next to my pinned GIMP shortcut, instead of by adding a new shortcut with a gear icon? Is the reason this doesn't work that I have done something wrong in crafting my .desktop file, or is GIMP missing some kind of feature that's needed for it to properly integrate with the GNOME dock in the way other programs do.
Reply


Messages In This Thread
Ubuntu - Right way to craft a .desktop entry for the AppImage - by ExplodingCabbage - 3 hours ago

Forum Jump: