From 7a179e4f3c872a6e0a69b82b8fd87cda6b99b5d5 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Mon, 18 Apr 2022 12:56:06 +0300 Subject: [PATCH] b/ulp/{element,nheko}: cut torifying to -tor --- bash/usr-local-bin/element | 10 ++++------ bash/usr-local-bin/element-tor | 14 ++++++++++++++ bash/usr-local-bin/nheko | 4 ++-- bash/usr-local-bin/nheko-tor | 10 ++++++++++ 4 files changed, 30 insertions(+), 8 deletions(-) create mode 100755 bash/usr-local-bin/element-tor create mode 100755 bash/usr-local-bin/nheko-tor diff --git a/bash/usr-local-bin/element b/bash/usr-local-bin/element index 2407256..3d44af0 100755 --- a/bash/usr-local-bin/element +++ b/bash/usr-local-bin/element @@ -1,13 +1,11 @@ #!/usr/bin/env bash -# Torifying Element +# Wayland flags: --enable-features=UseOzonePlatform,WebRTCPipeWireCapturer --ozone-platform=wayland +# Wayland crash: https://github.com/vector-im/element-web/issues/19964 +# Crash workaround for Signal-desktop, but not Element? --disable-gpu set -x -# proxy authentication is not supported -# https://github.com/vector-im/element-web/issues/3320 -#/usr/bin/element --proxy-server=socks5://127.0.0.1:9050 $@ # Flatpak is preferred for Element not having official Fedora repositories # and at the time of writing being unmaintained in upstream suggested repo. -# Also workaround my electron curse -flatpak run im.riot.Riot --disable-gpu --proxy-server=socks5://127.0.0.1:9050 $@ +flatpak run im.riot.Riot $@ set +x diff --git a/bash/usr-local-bin/element-tor b/bash/usr-local-bin/element-tor new file mode 100755 index 0000000..e3a9aa9 --- /dev/null +++ b/bash/usr-local-bin/element-tor @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +# Torifying Element +# Wayland flags: --enable-features=UseOzonePlatform,WebRTCPipeWireCapturer --ozone-platform=wayland +# Wayland crash: https://github.com/vector-im/element-web/issues/19964 +# Crash workaround for Signal-desktop, but not Element? --disable-gpu +set -x +# proxy authentication is not supported +# https://github.com/vector-im/element-web/issues/3320 +#/usr/bin/element --proxy-server=socks5://127.0.0.1:9050 $@ +# Flatpak is preferred for Element not having official Fedora repositories +# and at the time of writing being unmaintained in upstream suggested repo. +flatpak run im.riot.Riot --proxy-server=socks5://127.0.0.1:9050 $@ +set +x diff --git a/bash/usr-local-bin/nheko b/bash/usr-local-bin/nheko index eb4fa8c..9ccfece 100755 --- a/bash/usr-local-bin/nheko +++ b/bash/usr-local-bin/nheko @@ -1,10 +1,10 @@ #!/usr/bin/env bash -# Nheko flatpak with Tor and xwayland as Nheko's wayland support is currently poor +# Nheko flatpak with xwayland as Nheko's wayland support is currently poor # icons not working, context menus being inaccessible, some # profiles not spawning windows set -x #flatpak run --env=QT_QPA_PLATFORM=xcb --env=all_proxy=socks5://127.0.0.1:9050/ io.github.NhekoReborn.Nheko $@ -flatpak run --env=QT_QPA_PLATFORM=xcb --env=all_proxy=socks5://127.0.0.1:9050/ io.github.NhekoReborn.Nheko//master $@ +flatpak run --env=QT_QPA_PLATFORM=xcb io.github.NhekoReborn.Nheko//master $@ set +x diff --git a/bash/usr-local-bin/nheko-tor b/bash/usr-local-bin/nheko-tor new file mode 100755 index 0000000..eb4fa8c --- /dev/null +++ b/bash/usr-local-bin/nheko-tor @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +# Nheko flatpak with Tor and xwayland as Nheko's wayland support is currently poor +# icons not working, context menus being inaccessible, some +# profiles not spawning windows + +set -x +#flatpak run --env=QT_QPA_PLATFORM=xcb --env=all_proxy=socks5://127.0.0.1:9050/ io.github.NhekoReborn.Nheko $@ +flatpak run --env=QT_QPA_PLATFORM=xcb --env=all_proxy=socks5://127.0.0.1:9050/ io.github.NhekoReborn.Nheko//master $@ +set +x