Fix SQLite buffer setup, fix PostgreSQL migration
[quassel.git] / snap.wrapper
1 #!/bin/sh
2 if [ "$SNAP_ARCH" = "amd64" ]; then
3     ARCH="x86_64-linux-gnu"
4 elif [ "$SNAP_ARCH" = "armhf" ]; then
5     ARCH="arm-linux-gnueabihf"
6 else
7     ARCH="$SNAP_ARCH-linux-gnu"
8 fi
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"
12
13 LD_LIBRARY_PATH=$SNAP_LIBRARY_PATH:$LD_LIBRARY_PATH
14
15 export QT_PLUGIN_PATH=$SNAP/usr/lib/$ARCH/qt5/plugins
16
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
20
21 exec $@