No menu entries after installing snaps on Debian 10 Cinnamon


This topic is quite often and I have been searching around without being able to fix the issue.

I have Debian 10 with Cinnamon GUI environment. In /etc/profile.d I have a file with:

# shellcheck shell=sh

# Expand $PATH to include the directory where snappy applications go.
if [ -n "${PATH##*${snap_bin_path}}" ] && [ -n "${PATH##*${snap_bin_path}:*}" ]; then
    export PATH=$PATH:${snap_bin_path}

# Ensure base distro defaults xdg path are set if nothing filed up some
# defaults yet.
if [ -z "$XDG_DATA_DIRS" ]; then
    export XDG_DATA_DIRS="/usr/local/share:/usr/share"

# Desktop files (used by desktop environments within both X11 and Wayland) are
# looked for in XDG_DATA_DIRS; make sure it includes the relevant directory for
# snappy applications' desktop files.
if [ -n "${XDG_DATA_DIRS##*${snap_xdg_path}}" ] && [ -n "${XDG_DATA_DIRS##*${snap_xdg_path}:*}" ]; then
    export XDG_DATA_DIRS="${XDG_DATA_DIRS}:${snap_xdg_path}"

I have logged out and logged in again without any success. Furthermore echo $XDG_DATA_DIRS gives:


It seems it doesn’t include the one for snap. I have tried also to put in ~/.profile the $XDG_DATA_DIRS, ie.


but again with no success.

snap --version
snap 2.49.2
snapd 2.49.2
series 16
debian 10
kernel 4.19.0-16-amd64