mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2025-01-12 21:42:31 +01:00
bash/…/codium: copy x11 forcing from code
This commit is contained in:
parent
846033e922
commit
9eb106fb25
@ -1,6 +1,26 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# TODO! Enable wayland support by swapping x11 with wayland! Currently broken.
|
||||
# https://github.com/microsoft/vscode/issues/202072
|
||||
|
||||
set -x
|
||||
# https://github.com/flathub/com.vscodium.codium/issues/55
|
||||
flatpak run com.vscodium.codium --no-sandbox --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@"
|
||||
if [ -f /usr/bin/codium ]; then
|
||||
/usr/bin/codium --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform,WebContentsForceDark --ozone-platform=x11 "$@"
|
||||
|
||||
elif [ -f /snap/bin/codium ]; then
|
||||
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/104
|
||||
#unset DBUS_SESSION_BUS_ADDRESS
|
||||
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/105
|
||||
#export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
|
||||
snap run codium --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform,WebContentsForceDark --ozone-platform=x11 "$@"
|
||||
|
||||
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 "$@"
|
||||
|
||||
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 "$@"
|
||||
|
||||
else
|
||||
echo "codium not found :("
|
||||
fi
|
||||
set +x
|
||||
|
Loading…
Reference in New Issue
Block a user