Only add snap if snapd exists
This commit is contained in:
parent
c6ecb4e5c3
commit
b1c3772903
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ fi
|
||||||
# looked for in XDG_DATA_DIRS; make sure it includes the relevant directory for
|
# looked for in XDG_DATA_DIRS; make sure it includes the relevant directory for
|
||||||
# snappy applications' desktop files.
|
# snappy applications' desktop files.
|
||||||
_snap_xdg_path=/var/lib/snapd/desktop
|
_snap_xdg_path=/var/lib/snapd/desktop
|
||||||
if [ -n "${XDG_DATA_DIRS##*${_snap_xdg_path}}" ] && [ -n "${XDG_DATA_DIRS##*${_snap_xdg_path}:*}" ]
|
if [ -x /usr/lib/snapd/snapd ] && [ -n "${XDG_DATA_DIRS##*${_snap_xdg_path}}" ] && [ -n "${XDG_DATA_DIRS##*${_snap_xdg_path}:*}" ]
|
||||||
then
|
then
|
||||||
XDG_DATA_DIRS="${XDG_DATA_DIRS}:${_snap_xdg_path}"
|
XDG_DATA_DIRS="${XDG_DATA_DIRS}:${_snap_xdg_path}"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue