b/ulp/{element,nheko}: cut torifying to -tor

This commit is contained in:
Aminda Suomalainen 2022-04-18 12:56:06 +03:00
parent 5a74b94071
commit 7a179e4f3c
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
4 changed files with 30 additions and 8 deletions

View File

@ -1,13 +1,11 @@
#!/usr/bin/env bash #!/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 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 # Flatpak is preferred for Element not having official Fedora repositories
# and at the time of writing being unmaintained in upstream suggested repo. # and at the time of writing being unmaintained in upstream suggested repo.
# Also workaround my electron curse flatpak run im.riot.Riot $@
flatpak run im.riot.Riot --disable-gpu --proxy-server=socks5://127.0.0.1:9050 $@
set +x set +x

14
bash/usr-local-bin/element-tor Executable file
View File

@ -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

View File

@ -1,10 +1,10 @@
#!/usr/bin/env bash #!/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 # icons not working, context menus being inaccessible, some
# profiles not spawning windows # profiles not spawning windows
set -x 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 $@
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 set +x

10
bash/usr-local-bin/nheko-tor Executable file
View File

@ -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