3 ############################################################
4 ## Auto restart discord when it silently decides to crash ##
5 ############################################################
7 # toggle like behaviour
8 if [ -e /tmp/instantos/discord ]; then
9 echo "discord restart disabled"
10 rm /tmp/instantos/discord
13 echo "discord restart enabled"
15 touch /tmp/instantos/discord
19 if ! [ -e /tmp/instantos/discord ]; then
23 if command -v discord; then
24 if ! pgrep discord; then
27 elif command -v Discord; then
28 if ! pgrep Discord; then