diff --git a/conf/menu.xml b/conf/menu.xml index 825276a..fed5ebc 100644 --- a/conf/menu.xml +++ b/conf/menu.xml @@ -65,6 +65,7 @@ + /app/scripts/discord.sh /app/scripts/empathy.sh /app/scripts/hexchat.sh /app/scripts/loqui.sh diff --git a/scripts/discord.sh b/scripts/discord.sh new file mode 100755 index 0000000..471c840 --- /dev/null +++ b/scripts/discord.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +BINARY="discord" + +BINARYLOC=`which ${BINARY}` +if [ "$?" -ne "0" ]; then + set -e + + xterm -T InstallOpera -g 100x30 -e sudo /app/scripts/install_discord.sh +fi + +dbus-launch ${BINARY} --no-sandbox --disable-gpu diff --git a/scripts/install_discord.sh b/scripts/install_discord.sh new file mode 100755 index 0000000..33d4382 --- /dev/null +++ b/scripts/install_discord.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +set -e + +export DEBIAN_FRONTEND="noninteractive" +URL="https://discord.com/api/download?platform=linux&format=deb" +DEB="/tmp/discord.deb" + +wget ${URL} -O ${DEB} +dpkg -i ${DEB} || (set -e; apt-get update; apt-get install -f -y; apt-get install -y libgbm1) +rm ${DEB}