mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-11-16 08:09:23 +01:00
element: add appimage support
This commit is contained in:
parent
76a8b5de37
commit
0837bd3a25
@ -1,5 +1,32 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
|
if [ -f /etc/os-release ]; then
|
||||||
|
. /etc/os-release
|
||||||
|
if [ "$ID" == "arch" ]; then
|
||||||
|
echo "Remember! sudo pacman -S fuse2"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# This assumes the usage of GearLever with the default directory.
|
||||||
|
if [ -f ~/AppImages/element.appimage ]; then
|
||||||
|
~/AppImages/element.appimage --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@"
|
||||||
|
# Or using Tails with portable installation
|
||||||
|
elif [ -f "$HOME/Persistent/AppImages/element.appimage" ]; then
|
||||||
|
# Ensure it has the portable directory instead of thrwing the files on
|
||||||
|
# temporary media
|
||||||
|
mkdir -vp "$HOME/Persistent/AppImages/element.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 "$@"
|
||||||
|
elif [ -f /var/lib/flatpak/exports/bin/im.riot.Riot ]; then
|
||||||
flatpak run im.riot.Riot --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@"
|
flatpak run im.riot.Riot --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@"
|
||||||
|
elif [ -f ~/.local/share/flatpak/exports/bin/im.riot.Riot ]; then
|
||||||
|
flatpak run --user im.riot.Riot --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@"
|
||||||
|
else
|
||||||
|
print "Element not found."
|
||||||
|
notify-send "Element not found."
|
||||||
|
fi
|
||||||
set +x
|
set +x
|
||||||
|
Loading…
Reference in New Issue
Block a user