bash/usr-local-bin: make {element,codium} aware of Wayland

This commit is contained in:
Aminda Suomalainen 2022-04-15 11:46:45 +03:00
parent c7ac32c85b
commit 15aea07101
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
2 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,8 @@
#!/usr/bin/env bash
# Run under flatpak, and Wayland
set -x
# https://github.com/flathub/com.vscodium.codium/issues/55
flatpak run com.vscodium.codium --no-sandbox $@
flatpak run com.vscodium.codium --no-sandbox --enable-features=UseOzonePlatform --ozone-platform=wayland $@
set +x

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash
# Torifying Element
# Torifying Element. And running it under Wayland
set -x
# proxy authentication is not supported
@ -8,5 +8,5 @@ set -x
#/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 $@
flatpak run im.riot.Riot --enable-features=UseOzonePlatform --ozone-platform=wayland --proxy-server=socks5://127.0.0.1:9050 $@
set +x