Snap app icon doesn't appear in menu

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
rodrigosilva0494
Level 1
Level 1
Posts: 10
Joined: Tue May 12, 2020 1:18 am

Snap app icon doesn't appear in menu

Post by rodrigosilva0494 »

Hello.

I have installed the snap app Rambox via terminal

Code: Select all

sudo snap install rambox
, and I can run the app normally with

Code: Select all

snap run rambox
. I just wanted to open the app via cinnamon menu, but the icon isn't there. Also, when I run the app via terminal, the icon on the panel has a figure of a gear, and I can't add to panel. Is there anyway I could fix this? I have already rebooted the system.

Thank you!
User avatar
smurphos
Level 17
Level 17
Posts: 7332
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: Snap app icon doesn't appear in menu

Post by smurphos »

Hi,

Can you run the following terminal commands?

Check if the snapd desktop file location is registered properly

Code: Select all

echo $XDG_DATA_DIRS
Check for a rambox .desktop file

Code: Select all

ls -l /var/lib/snapd/desktop/applications
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
rodrigosilva0494
Level 1
Level 1
Posts: 10
Joined: Tue May 12, 2020 1:18 am

Re: Snap app icon doesn't appear in menu

Post by rodrigosilva0494 »

Hi, and thanks for the reply!

When I write "echo $XDG_DATA_DIRS", I get this:
/usr/share/gnome:/home/rodrigo/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share

And when I write "ls -l /var/lib/snapd/desktop/applications" I get this:
total 8
-rw-r--r-- 1 root root 13 May 16 13:41 mimeinfo.cache
-rwxr-xr-x 1 root root 352 May 16 13:41 rambox_rambox.desktop

I'm not an expert user, so I don't know exactly that it means.
Thank you!
User avatar
smurphos
Level 17
Level 17
Posts: 7332
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: Snap app icon doesn't appear in menu

Post by smurphos »

Thanks - looks like a snapd bug - the first output should include /var/lib/snapd/desktop

You can work around the issue by making a copy of the rambox desktop file to your local applications folder

Run this in a terminal, then log off and back on. Rambox should be in the menu and pinnable.

Code: Select all

cp /var/lib/snapd/desktop/applications/rambox_rambox.desktop ~/.local/share/applications/
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
rodrigosilva0494
Level 1
Level 1
Posts: 10
Joined: Tue May 12, 2020 1:18 am

Re: Snap app icon doesn't appear in menu

Post by rodrigosilva0494 »

Thanks again for the reply.
When I write the command, I get this message:
cp: cannot create regular file '/home/rodrigo/.local/share/applications/': Not a directory

Should I create this directory then?
User avatar
smurphos
Level 17
Level 17
Posts: 7332
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: Snap app icon doesn't appear in menu

Post by smurphos »

rodrigosilva0494 wrote:
Sat May 16, 2020 2:50 pm
Should I create this directory then?
Yep - you can do it the file manager or with terminal command

Code: Select all

mkdir -p ~/.local/share/applications
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
rodrigosilva0494
Level 1
Level 1
Posts: 10
Joined: Tue May 12, 2020 1:18 am

Re: Snap app icon doesn't appear in menu

Post by rodrigosilva0494 »

Worked like a charm. Thank you very much for the help! :)
Monsta
Level 10
Level 10
Posts: 3058
Joined: Fri Aug 19, 2011 3:46 am

Re: Snap app icon doesn't appear in menu

Post by Monsta »

So... snapd actually sets $XDG_DATA_DIRS in /etc/profile.d/apps-bin-path.sh, but that file isn't used in the graphical logins in Debian: viewtopic.php?f=247&t=278474
User avatar
smurphos
Level 17
Level 17
Posts: 7332
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: Snap app icon doesn't appear in menu

Post by smurphos »

Monsta wrote:
Sun May 17, 2020 7:56 am
So... snapd actually sets $XDG_DATA_DIRS in /etc/profile.d/apps-bin-path.sh, but that file isn't used in the graphical logins in Debian: viewtopic.php?f=247&t=278474
Ah, I hadn't actually clocked the question was in the LMDE section. Interesting how the equivalent flatpak path does make it to XDG_DATA_DIRS though - I guess the Mint team have tweaked something in LMDE to make that work out of the box. I'm surprised the snapd developers haven't implemented a work-around for Debian.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
axisofevil
Level 3
Level 3
Posts: 183
Joined: Mon Nov 14, 2011 12:22 pm

Re: Snap app icon doesn't appear in menu

Post by axisofevil »

Yet another "general" package system fail.
Monsta
Level 10
Level 10
Posts: 3058
Joined: Fri Aug 19, 2011 3:46 am

Re: Snap app icon doesn't appear in menu

Post by Monsta »

smurphos wrote:
Sun May 17, 2020 12:13 pm
Ah, I hadn't actually clocked the question was in the LMDE section. Interesting how the equivalent flatpak path does make it to XDG_DATA_DIRS though - I guess the Mint team have tweaked something in LMDE to make that work out of the box. I'm surprised the snapd developers haven't implemented a work-around for Debian.
Flatpak has its paths set in /etc/X11/Xsession.d/20flatpak file - that one is used in the X logins.

Actually, I found that snapd used to have a similar file in /etc/X11/Xsession.d/ dir as well, until upstream dropped it. It should be there in LMDE 3, but it's gone in LMDE 4.
jenbites
Level 1
Level 1
Posts: 1
Joined: Wed Jul 29, 2020 12:02 pm

Re: Snap app icon doesn't appear in menu

Post by jenbites »

smurphos wrote:
Sat May 16, 2020 2:35 pm
Thanks - looks like a snapd bug - the first output should include /var/lib/snapd/desktop

You can work around the issue by making a copy of the rambox desktop file to your local applications folder

Run this in a terminal, then log off and back on. Rambox should be in the menu and pinnable.

Code: Select all

cp /var/lib/snapd/desktop/applications/rambox_rambox.desktop ~/.local/share/applications/

Wow! I really created an account just to say, thankyou! this one worked for me! <3
Post Reply

Return to “Newbie Questions”