Finding original desktop file names

Alexander Larsson alexl at redhat.com
Wed Aug 7 08:53:56 UTC 2019


On Wed, Aug 7, 2019 at 10:38 AM Adrian Vovk <adrianvovk at gmail.com> wrote:
>
> Hello,
>
> I'm building a distro + DE that exclusively uses Flatpak for package management. I'm working on my notification server, and some apps (like Discord) send over their app IDs in the notification, but they send their "real" app ID (discord.desktop) and not the app ID the system knows them by (com.discordapp.Discord.desktop). Is there some way for my shell to look up which app discord.desktop belongs to? An extra key in all of Flatpak's generated desktop files would be perfect for this. I'd just loop over all of the apps on the system and check for X-Flatpak-RenamedFrom=discord.desktop and I'd know the app's real ID.

flatpak-builder does set the X-Flatpak-RenamedFrom key in the desktop
file if you use it to rename the desktop file, which should work fine
for this, no?

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                Red Hat, Inc
       alexl at redhat.com         alexander.larsson at gmail.com


More information about the Flatpak mailing list