Hi guys, I’m encountering a weird problem. Anyone sheds some light?
Background
Apparently, installed snaps are working fine via terminal commands. However, Apps like Atom, VLC and Firefox has their own respective .Desktop files. They aren’t appearing in the menu.
UPDATE 8/14/2018 21:55 +0800: /etc/profile
is not sourced at login. You must add source /etc/profile
in ~/.bashrc
or ~/.xsessionrc
manually in order to make snaps commands available to use. It’s not a bug but an expectation for all Debian users.
Expected Outcome
Shortcuts are made available in the menu for those that have .Desktop without manual intervention.
Urgently Looking For
A way to export the .Desktop path like how we do for $PATH
.
Discovered Date
13 August 2018 +8000
Workaround
The snaps .Desktop files are located in /var/lib/snapd/desktop/applications/
. Navigate into that folder and copy the file out to Desktop for easy access.
OR
softlink them into $HOME/.local/share/applications/.
.
Snapd Info
- Using native package? Yes
- Snapd Version?
snap 2.34.3
snapd 2.34.3
series 16
debian 9
kernel 4.9.0-7-amd64
- Upgrade it to latest? Still looking for way to update it towards the latest.
Hypothesis 1: Wayland bug
Source: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1705122
Attempted: Desktop snaps do not appear in the dash/menu on gnome in 17.10 final beta, no result.
Inferences:
- My case is X11, as
loginctl
dump these outputs:
holloway:fennec$ loginctl
SESSION UID USER SEAT TTY
2 1000 holloway seat0
4 1000 holloway
c1 111 lightdm seat0
3 sessions listed.
holloway:fennec$ loginctl show-session 2 -p Type
Type=x11
holloway:fennec$ loginctl show-session 4 -p Type
Type=tty
holloway:fennec$ loginctl show-session c1 -p Type
Type=x11
Also attempted XDG_DATA_DIRS
environment variables, no luck.
Checked my terminal type:
holloway:fennec$ echo $SHELL
/bin/bash
Hypothesis 2: The .desktop files are misplaced
Source: https://askubuntu.com/questions/910821/snap-install-programs-not-in-launcher
Attempted:
holloway:fennec$ ln -st ~/.local/share/applications /var/lib/snapd/desktop/applications/*.desktop
Turns out it is working fine but I need to run this every time I install a new snap.