2 if [ "$SNAP_ARCH" = "amd64" ]; then
3 ARCH="x86_64-linux-gnu"
4 elif [ "$SNAP_ARCH" = "armhf" ]; then
5 ARCH="arm-linux-gnueabihf"
7 ARCH="$SNAP_ARCH-linux-gnu"
9 export PATH="$SNAP/bin:$SNAP/usr/bin:$PATH"
10 export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$SNAP/lib:$SNAP/usr/lib:$SNAP/lib/$ARCH:$SNAP/usr/lib/$ARCH"
11 export LD_LIBRARY_PATH="$SNAP/usr/lib/$ARCH:$LD_LIBRARY_PATH"
13 LD_LIBRARY_PATH=$SNAP_LIBRARY_PATH:$LD_LIBRARY_PATH
15 export QT_PLUGIN_PATH=$SNAP/usr/lib/$ARCH/qt5/plugins
17 export XDG_CONFIG_HOME=$HOME/.config
18 CERT=$XDG_CONFIG_HOME/quassel-irc.org/quasselCert.pem
19 test ! -f $CERT && openssl req -x509 -nodes -days 365 -newkey rsa:4096 -keyout $CERT -out $CERT -batch