From b5f3240400eb5b904a4d027f44c8d082afb74041 Mon Sep 17 00:00:00 2001 From: Simon Fels Date: Sun, 12 Mar 2017 14:32:04 +0100 Subject: [PATCH] Set XDG_DATA_HOME to SNAP_COMMON to have a common place for our app launchers --- scripts/snap-wrapper.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/snap-wrapper.sh b/scripts/snap-wrapper.sh index a7b4fd7..f76fe0f 100755 --- a/scripts/snap-wrapper.sh +++ b/scripts/snap-wrapper.sh @@ -29,4 +29,10 @@ export LIBGL_DRIVERS_PATH=$SNAP/usr/lib/$ARCH/dri # ensure the snappy gl libs win export LD_LIBRARY_PATH="$SNAP_LIBRARY_PATH:$LD_LIBRARY_PATH" +# We set XDG_DATA_HOME to SNAP_COMMON here as this will be the location we will +# create all our application launchers in. The system application launcher will +# be configured by our installer to look into this directory for available +# launchers. +export XDG_DATA_HOME="$SNAP_COMMON" + exec $SNAP/usr/bin/anbox $@