Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ubuntu - Right way to craft a .desktop entry for the AppImage
#3
Ooh - if I copy and paste your .desktop file (and change the file paths), it works correctly! So while you may not be able to see anything wrong with mine, and I can't tell what was wrong either, there was SOMETHING wrong with it.

I'll experiment until I figure out exactly which difference between the two is the thing that matters, then post again...

The difference that mattered was the line:

Code:
StartupNotify=true


If I add that to my .desktop file, everything works as expected. Thanks!

I don't entirely understand why it's needed; the only docs/spec I'm aware of explaining what the properties in .desktop do is https://specifications.freedesktop.org/d...-keys.html, and to someone like me who knows nothing about Freedesktop (indeed I had to Google what Freedesktop even is), most of the description of StartupNotify is incomprehensible technobabble.

But I do think I roughly understand the following gist:
  • GNOME (used by default on Ubuntu) is built on top of Freedesktop
  • There is a specification called the "Startup Notification Protocol" that desktop GUI applications can conform to in order to let Freedesktop track their startup
  • The StartupNotify key tells a Freedesktop-based desktop environment whether the application supports the Startup Notification Protocol or not. The spec doesn't dictate precisely what to do if that key is omitted, but suggests that it is "reasonable" to treat that case the same as if StartupNotify=false is specified explicitly (which would mean the application has absolutely no support for the Startup Notification Protocol).
  • Presumably, the Startup Notification Protocol is the only way GNOME gets told that a window that gets opened by the GIMP AppImage was actually related to that AppImage (and without the protocol notifications, it doesn't know how to associate the two with each other), so we need to explicitly tell GNOME to expect and handle Startup Notification Protocol notifications.
At least, that model that I've inferred / made up makes sense in my head! Thanks for the help.

(I crafted my .desktop file based on the Ask Ubuntu answer at https://askubuntu.com/a/1454276/119754, so I'll comment there suggesting that, for many applications, StartupNotify may also be necessary.)

Oh, also, just for completeness, I'll note that no, I don't have the ~/.local/share/appimagekit/ folder that you asked about - though I figure it probably doesn't matter either way, now!
Reply


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

Forum Jump: