| 1 |
#!/bin/bash |
| 2 |
|
| 3 |
if [ "$SNAP_ARCH" == "amd64" ]; then |
| 4 |
ARCH="x86_64-linux-gnu" |
| 5 |
elif [ "$SNAP_ARCH" == "armhf" ]; then |
| 6 |
ARCH="arm-linux-gnueabihf" |
| 7 |
else |
| 8 |
ARCH="$SNAP_ARCH-linux-gnu" |
| 9 |
fi |
| 10 |
|
| 11 |
# Disable the chromium sandbox to work around https://launchpad.net/bugs/1599234. |
| 12 |
# Rely on snapd’s security policy instead. |
| 13 |
export OXIDE_NO_SANDBOX=1 |
| 14 |
|
| 15 |
# Explicitly set APP_ID. |
| 16 |
export APP_ID=dekko |
| 17 |
|
| 18 |
# App specific plugin locations |
| 19 |
export QMF_PLUGINS=$SNAP/usr/lib/$ARCH/qmf/plugins5 |
| 20 |
export DEKKO_PLUGINS=$SNAP/usr/lib/$ARCH/Dekko/plugins |
| 21 |
|
| 22 |
# Location qmf will store the mailstore cache |
| 23 |
export QMF_DATA=$SNAP_USER_COMMON/.cache |
| 24 |
|
| 25 |
exec $SNAP/usr/bin/dekko --desktop_file_hint=unity8 "$@" |