From d5be6e50713752778d9a8a76160432ed15b9ba87 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Wed, 14 Aug 2024 07:47:37 +0300 Subject: [PATCH] beeper: add Tails support (untested) --- bash/usr-local-bin/beeper | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bash/usr-local-bin/beeper b/bash/usr-local-bin/beeper index e2123c9..2f87122 100755 --- a/bash/usr-local-bin/beeper +++ b/bash/usr-local-bin/beeper @@ -8,6 +8,16 @@ fi # This assumes the usage of GearLever with the default directory. if [ -f ~/AppImages/beeper.appimage ]; then ~/AppImages/beeper.appimage --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@" +# Or using Tails with portable installation +elif [ -f "$HOME/Persistent/AppImages/beeper.appimage" ]; then + # Ensure it has the portable directory instead of thrwing the files on + # temporary media + mkdir -vp "$HOME/Persistent/AppImages/beeper.appimage.home" + # We are using Tor, so we are American English, UTC is enforced anyway, + # but probably won't hurt. + export LC_ALL=en_US.utf8 + export TZ=UTC + $HOME/Persistent/AppImages/beeper.appimage --ozone-platform=wayland --enable-features=WaylandWindowDecorations --proxy-server=socks5://127.0.0.1:9050 "$@" else print "~/AppImages/beeper.appimage not found. Please install it through gearlever (default locaiton) or symlink it there." notify-send "~/AppImages/beeper.appimage not found. Please install it through gearlever (default locaiton) or symlink it there."