mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-20 09:35:38 -05:00
* Initial port of release/0.24 source code * Fix additional headers * Fix a typo in launch.json
31 lines
694 B
Bash
31 lines
694 B
Bash
#!/bin/sh
|
|
|
|
if test "$1" = "classic"; then
|
|
shift
|
|
case $SNAP_ARCH in
|
|
amd64)
|
|
TRIPLET="x86_64-linux-gnu"
|
|
;;
|
|
armhf)
|
|
TRIPLET="arm-linux-gnueabihf"
|
|
;;
|
|
arm64)
|
|
TRIPLET="aarch64-linux-gnu"
|
|
;;
|
|
*)
|
|
TRIPLET="$(uname -p)-linux-gnu"
|
|
;;
|
|
esac
|
|
|
|
# TODO: Swap LD lib paths whenever processes are launched
|
|
export LD_LIBRARY_PATH_OLD=$LD_LIBRARY_PATH
|
|
export LD_LIBRARY_PATH=$SNAP/usr/lib:$SNAP/usr/lib/$TRIPLET:$LD_LIBRARY_PATH
|
|
export LD_LIBRARY_PATH=$SNAP/lib:$SNAP/lib/$TRIPLET:$LD_LIBRARY_PATH
|
|
fi
|
|
|
|
# Correct the TMPDIR path for Chromium Framework/Electron to ensure
|
|
# libappindicator has readable resources.
|
|
export TMPDIR=$XDG_RUNTIME_DIR
|
|
|
|
exec ${SNAP}/bin/desktop-launch $@
|