We're using the desktop helpers now to setup all necessary environment variables for GL drivers etc. and only keep a small set of extra changes on top for things the desktop-helpers don't support yet.
25 lines
833 B
Bash
Executable file
25 lines
833 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if [ "$SNAP_ARCH" == "amd64" ]; then
|
|
ARCH="x86_64-linux-gnu"
|
|
elif [ "$SNAP_ARCH" == "armhf" ]; then
|
|
ARCH="arm-linux-gnueabihf"
|
|
else
|
|
ARCH="$SNAP_ARCH-linux-gnu"
|
|
fi
|
|
|
|
# With recent builds on Ubuntu 16.04 the snap does not find the path to
|
|
# libpulsecommon-8.0.so anymore so we have to teach the linker manually
|
|
# where it can be found
|
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$SNAP/usr/lib/$ARCH/pulseaudio
|
|
|
|
# liblxc.so.1 is in $SNAP/lib
|
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$SNAP/lib
|
|
|
|
# We set XDG_DATA_HOME to SNAP_USER_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_USER_COMMON/app-data"
|
|
|
|
exec $SNAP/usr/bin/anbox $@
|