mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-11-15 23:59:25 +01:00
bash/usr-local-bin/*: drop WebContentsForceDark and ozone platform hints
This commit is contained in:
parent
6a22f8002f
commit
e8f418a36d
@ -4,6 +4,6 @@ set -x
|
|||||||
if [ -f /snap/bin/bitwarden ]; then
|
if [ -f /snap/bin/bitwarden ]; then
|
||||||
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/104
|
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/104
|
||||||
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
|
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
|
||||||
snap run bitwarden --ozone-platform=x11 --ozone-platform-hint=wayland --enable-features=WaylandWindowDecorations "$@"
|
snap run bitwarden --ozone-platform=x11 --enable-features=WaylandWindowDecorations "$@"
|
||||||
fi
|
fi
|
||||||
set +x
|
set +x
|
||||||
|
@ -5,20 +5,20 @@
|
|||||||
|
|
||||||
set -x
|
set -x
|
||||||
if [ -f /usr/bin/code ]; then
|
if [ -f /usr/bin/code ]; then
|
||||||
/usr/bin/code --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform,WebContentsForceDark --ozone-platform-hint=wayland "$@"
|
/usr/bin/code --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform --ozone-platform=wayland "$@"
|
||||||
|
|
||||||
elif [ -f /snap/bin/code ]; then
|
elif [ -f /snap/bin/code ]; then
|
||||||
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/104
|
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/104
|
||||||
#unset DBUS_SESSION_BUS_ADDRESS
|
#unset DBUS_SESSION_BUS_ADDRESS
|
||||||
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/105
|
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/105
|
||||||
#export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
|
#export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
|
||||||
snap run code --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform,WebContentsForceDark --ozone-platform-hint=x11 "$@"
|
snap run code --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform --ozone-platform=x11 "$@"
|
||||||
|
|
||||||
elif [ -f ~/.local/share/flatpak/exports/bin/run/com.visualstudio.code ]; then
|
elif [ -f ~/.local/share/flatpak/exports/bin/run/com.visualstudio.code ]; then
|
||||||
flatpak run --user com.visualstudio.code --verbose --no-sandbox --ozone-platform-hint=x11 --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@"
|
flatpak run --user com.visualstudio.code --verbose --no-sandbox --ozone-platform=x11 --enable-features=WaylandWindowDecorations "$@"
|
||||||
|
|
||||||
elif [ -f ~/.local/share/flatpak/exports/bin/run/com.visualstudio.code ]; then
|
elif [ -f ~/.local/share/flatpak/exports/bin/run/com.visualstudio.code ]; then
|
||||||
flatpak run com.visualstudio.code --verbose --no-sandbox --ozone-platform-hint=x11 --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@"
|
flatpak run com.visualstudio.code --verbose --no-sandbox --ozone-platform=x11 --enable-features=WaylandWindowDecorations "$@"
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "code not found :("
|
echo "code not found :("
|
||||||
|
@ -2,20 +2,20 @@
|
|||||||
|
|
||||||
set -x
|
set -x
|
||||||
if [ -f /usr/bin/code-insiders ]; then
|
if [ -f /usr/bin/code-insiders ]; then
|
||||||
/usr/bin/code-insiders --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform,WebContentsForceDark --ozone-platform-hint=auto "$@"
|
/usr/bin/code-insiders --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform --ozone-platform=wayland "$@"
|
||||||
|
|
||||||
elif [ -f /snap/bin/code-insiders ]; then
|
elif [ -f /snap/bin/code-insiders ]; then
|
||||||
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/104
|
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/104
|
||||||
#unset DBUS_SESSION_BUS_ADDRESS
|
#unset DBUS_SESSION_BUS_ADDRESS
|
||||||
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/105
|
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/105
|
||||||
#export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
|
#export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
|
||||||
snap run code-insiders --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform,WebContentsForceDark --ozone-platform-hint=auto "$@"
|
snap run code-insiders --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform --ozone-platform=wayland "$@"
|
||||||
|
|
||||||
elif [ -f ~/.local/share/flatpak/exports/bin/run/com.visualstudio.code.insiders ]; then
|
elif [ -f ~/.local/share/flatpak/exports/bin/run/com.visualstudio.code.insiders ]; then
|
||||||
flatpak run --user com.visualstudio.code.insiders --verbose --no-sandbox --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@"
|
flatpak run --user com.visualstudio.code.insiders --verbose --no-sandbox --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@"
|
||||||
|
|
||||||
elif [ -f ~/.local/share/flatpak/exports/bin/run/com.visualstudio.code.insiders ]; then
|
elif [ -f ~/.local/share/flatpak/exports/bin/run/com.visualstudio.code.insiders ]; then
|
||||||
flatpak run com.visualstudio.code.insiders --verbose --no-sandbox --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@"
|
flatpak run com.visualstudio.code.insiders --verbose --no-sandbox --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@"
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "code not found :("
|
echo "code not found :("
|
||||||
|
@ -5,20 +5,20 @@
|
|||||||
|
|
||||||
set -x
|
set -x
|
||||||
if [ -f /usr/bin/codium ]; then
|
if [ -f /usr/bin/codium ]; then
|
||||||
/usr/bin/codium --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform,WebContentsForceDark --ozone-platform=wayland "$@"
|
/usr/bin/codium --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform --ozone-platform=wayland "$@"
|
||||||
|
|
||||||
elif [ -f /snap/bin/codium ]; then
|
elif [ -f /snap/bin/codium ]; then
|
||||||
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/104
|
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/104
|
||||||
#unset DBUS_SESSION_BUS_ADDRESS
|
#unset DBUS_SESSION_BUS_ADDRESS
|
||||||
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/105
|
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/105
|
||||||
#export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
|
#export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
|
||||||
snap run codium --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform,WebContentsForceDark --ozone-platform=x11 "$@"
|
snap run codium --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform --ozone-platform=x11 "$@"
|
||||||
|
|
||||||
elif [ -f ~/.local/share/flatpak/exports/bin/run/com.vscodium.codium ]; then
|
elif [ -f ~/.local/share/flatpak/exports/bin/run/com.vscodium.codium ]; then
|
||||||
flatpak run --user com.vscodium.codium --verbose --no-sandbox --ozone-platform=x11 --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@"
|
flatpak run --user com.vscodium.codium --verbose --no-sandbox --ozone-platform=x11 --enable-features=WaylandWindowDecorations "$@"
|
||||||
|
|
||||||
elif [ -f ~/.local/share/flatpak/exports/bin/run/com.vscodium.codium ]; then
|
elif [ -f ~/.local/share/flatpak/exports/bin/run/com.vscodium.codium ]; then
|
||||||
flatpak run com.vscodium.codium --verbose --no-sandbox --ozone-platform=x11 --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@"
|
flatpak run com.vscodium.codium --verbose --no-sandbox --ozone-platform=x11 --enable-features=WaylandWindowDecorations "$@"
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "codium not found :("
|
echo "codium not found :("
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -x
|
set -x
|
||||||
flatpak run chat.delta.desktop --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@"
|
flatpak run chat.delta.desktop --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@"
|
||||||
set +x
|
set +x
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
flatpak run im.riot.Riot --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@"
|
flatpak run im.riot.Riot --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@"
|
||||||
set +x
|
set +x
|
||||||
|
@ -3,5 +3,5 @@
|
|||||||
set -x
|
set -x
|
||||||
# proxy authentication is not supported
|
# proxy authentication is not supported
|
||||||
# https://github.com/vector-im/element-web/issues/3320
|
# https://github.com/vector-im/element-web/issues/3320
|
||||||
flatpak run --env=LC_ALL=en_US.utf8 --env=TZ=UTC im.riot.Riot --proxy-server=socks5://127.0.0.1:9050 --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@"
|
flatpak run --env=LC_ALL=en_US.utf8 --env=TZ=UTC im.riot.Riot --proxy-server=socks5://127.0.0.1:9050 --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@"
|
||||||
set +x
|
set +x
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# I was unable to get the Flatpak to start and the Snap needed the usual, so
|
# I was unable to get the Flatpak to start and the Snap needed the usual, so
|
||||||
# here we are. Then I learned that it just needs --ozone-platform=wayland
|
# here we are. Then I learned that it just needs --ozone-platform=wayland
|
||||||
# instead of the old --ozone-platform-hint=auto, but whatever works or is
|
# instead of the old --ozone-platform=wayland, but whatever works or is
|
||||||
# installed is fine...
|
# installed is fine...
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
flatpak run com.github.IsmaelMartinez.teams_for_linux --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@"
|
flatpak run com.github.IsmaelMartinez.teams_for_linux --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@"
|
||||||
set +x
|
set +x
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
flatpak run chat.schildi.desktop --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark --system-theme-dark-override "$@"
|
flatpak run chat.schildi.desktop --ozone-platform=wayland --enable-features=WaylandWindowDecorations --system-theme-dark-override "$@"
|
||||||
set +x
|
set +x
|
||||||
|
@ -3,5 +3,5 @@
|
|||||||
set -x
|
set -x
|
||||||
# proxy authentication is not supported
|
# proxy authentication is not supported
|
||||||
# https://github.com/vector-im/element-web/issues/3320
|
# https://github.com/vector-im/element-web/issues/3320
|
||||||
flatpak run --env=LC_ALL=en_US.utf8 --env=TZ=UTC chat.schildi.desktop --proxy-server=socks5://127.0.0.1:9050 --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark --system-theme-dark-override "$@"
|
flatpak run --env=LC_ALL=en_US.utf8 --env=TZ=UTC chat.schildi.desktop --proxy-server=socks5://127.0.0.1:9050 --ozone-platform=wayland --enable-features=WaylandWindowDecorations --system-theme-dark-override "$@"
|
||||||
set +x
|
set +x
|
||||||
|
@ -4,5 +4,5 @@
|
|||||||
|
|
||||||
set -x
|
set -x
|
||||||
# --start-in-tray - would be nice, but then I cannot open it from there, thus --use-tray-icon
|
# --start-in-tray - would be nice, but then I cannot open it from there, thus --use-tray-icon
|
||||||
flatpak run org.signal.Signal --use-tray-icon --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@"
|
flatpak run org.signal.Signal --use-tray-icon --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@"
|
||||||
set +x
|
set +x
|
||||||
|
@ -3,8 +3,8 @@ set -x
|
|||||||
if [ -f /snap/bin/superproductivity ]; then
|
if [ -f /snap/bin/superproductivity ]; then
|
||||||
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/105
|
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/105
|
||||||
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
|
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
|
||||||
snap run superproductivity --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@"
|
snap run superproductivity --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@"
|
||||||
else
|
else
|
||||||
/usr/bin/superproductivity --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@"
|
/usr/bin/superproductivity --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@"
|
||||||
fi
|
fi
|
||||||
set +x
|
set +x
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -x
|
set -x
|
||||||
/usr/bin/vivaldi --ozone-platform=wayland --ozone-platform-hint=wayland --enable-features=WaylandWindowDecorations "$@"
|
/usr/bin/vivaldi --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@"
|
||||||
set +x
|
set +x
|
||||||
|
Loading…
Reference in New Issue
Block a user