1

I have downloaded a couple of flatpaks after installing and launch them from CLI, for example

flatpak run com.spotify.Client 

works fine.

However flatpaks don't seem to add icons to the LXDE app menu as native ones do.

I have copied the .desktop file from:

~/.local/share/flatpak/app/com.spotify.Client/x86_64/stable/active/files/share/applications/com.spotify.Client.desktop

To:

/usr/share/applications

Where all native .desktop files also reside. However the LXDE menu still does not pick my flatpaks up.

I have also tried to edit lxde-application.menu, by adding for example a section for 'Audio' (as one of the categories of Spotify is Audio) but it simply replicated the AudioVisual category with just Pulse Audio in (presumably because pulseaudio is also in the Audio category).

I am at a loss as to how to get these flatpaks showing as icons in the menu, any help would be greatly appreciated

ChanganAuto
  • 1
  • 4
  • 18
  • 19

1 Answers1

1

I have solved myself, for anyone else reading my solution might be useful - using the flatpak .desktop was a red herring, the solution is to roll your own, instructions below.

cd into your applications folder:

cd /usr/share/applications/

Create a new blank .desktop file:

sudo touch spotify.desktop

open with root privelages in Mousepad/Leafpad or similar:

sudo mousepad spotify.desktop

Copy and paste in the following. Note the Icon line refrences the .svg file installed with the flatpak but you can reference something else if you like, just change the file path:

[Desktop Entry] Type=Application Terminal=false Name=Spotify Icon=Icon=/home//.local/share/flatpak/app/com.spotify.Client/current/active/files/share/icons/hicolor/scalable/apps/com.spotify.Client.svg Exec=flatpak run com.spotify.Client Type-Application Categories AudioVideo;

Note also the Categories line; I have simply made Spotify an AudioVideo category to go in the existing 'Sound and Video' menu item but you could make it 'Audio' Category if you wished for example, just add a new 'Audio' category in lxde-applications.menu:

/etc/xdg/menus
Dave M
  • 13,250