Peppermint OS Community Forum

Resources => User Submitted Tutorials => Topic started by: PCNetSpec on March 15, 2018, 01:14:39 am

Title: Making snap applicattions appear in the menu
Post by: PCNetSpec on March 15, 2018, 01:14:39 am
If you've ever noticed, when you install a snap application they do not show up in the Peppermint 7/8 whiskermenu.

Obviously for any of this to work you'll need to have snapd installed first:
Code: [Select]
sudo apt-get install snapd
Now here's a workaround so installed snap applications show up in the whiskermenu, open a terminal and create a symlink from the directory snaps store their launchers (/var/lib/snapd/desktop/application) to the system applications directory:
Code: [Select]
sudo ln -s /var/lib/snapd/desktop/applications /usr/share/applications/snapd
now when you install a snap, such as:
Code: [Select]
snap install minecraft
or
Code: [Select]
snap install xnviewmp
or
Code: [Select]
snap install spotify
all you need to do is log off/on again .. or restart the panel with:
Code: [Select]
xfce4-panel -r
and the installed snap application should now appear in the whiskermenu.



Further info...

Uninstalling snaps is as simple as
Code: [Select]
snap remove <application name>
and if you want to know which apps are available as snaps, see here:
https://uappexplorer.com/snaps

Note:- Be aware some snaps (such as Spotify) take a short while to start up the first time they're run, but they start much quicker from then on.
Title: Re: Making snap applicattions appear in the menu
Post by: mentha_piperita on June 29, 2018, 09:34:06 am
Hello everyone.
I had the same problem.
Indeed, the apps are now appearing on the whisker menu but...TWICE.  ???
Any workaround to fix this?
Title: Re: Making snap applicattions appear in the menu
Post by: mentha_piperita on June 29, 2018, 09:40:40 am
[MIME Cache]
application/epub+zip=coolreader3_cr3.desktop;
application/rtf=coolreader3_cr3.desktop;
application/vnd.kde.okular-archive=okular_org.kde.okular.desktop;
application/x-chm=coolreader3_cr3.desktop;
application/x-fictionbook+xml=coolreader3_cr3.desktop;
application/x-psion-compressed-text=coolreader3_cr3.desktop;
application/x-zip-compressed-fb2=coolreader3_cr3.desktop;
application/xhtml+xml=coolreader3_cr3.desktop;
application/zip=coolreader3_cr3.desktop;
text/html=coolreader3_cr3.desktop;
text/plain=coolreader3_cr3.desktop;
Title: Re: Making snap applicattions appear in the menu
Post by: PCNetSpec on June 29, 2018, 09:59:07 am
Which version of peppermint ?

Peppermint 9 did not need the above fix, it already had a symlink in place .. all you need to do in Peppermint 9 is either restart the panel or log off/on.

What's the output from
Code: [Select]
ls -al /usr/share/applications | grep "\->"
Title: Re: Making snap applicattions appear in the menu
Post by: mentha_piperita on July 02, 2018, 10:56:51 am
Thank you for your help.
I am reinstalling peppermint now.  It was a new install anyway.
I 'll post you back :)
Title: Re: Making snap applicattions appear in the menu
Post by: PCNetSpec on July 02, 2018, 11:07:39 am
There was no need to reinstall, we could easily fix the dual symlinks.
Title: Re: Making snap applicattions appear in the menu
Post by: n6rej on September 28, 2018, 03:04:38 pm
I discovered the same problem whenever I installed something that said it was from flat group, on peppermint 9
Title: Re: Making snap applicattions appear in the menu
Post by: PCNetSpec on September 28, 2018, 04:06:36 pm
Any snap or flatpak (that actually contains a menu entry) installed under Peppermint 9 should show up in the menu after logging out/in (or rebooting)

Or you can just restart the panel with
Code: [Select]
xfce4-panel -r

THERE IS NO NEED TO CREATE THESE SYMLINKS IN PEPEPRMINT 9