mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2025-08-19 12:57:21 +02:00
Compare commits
2 Commits
846033e922
...
879c40d3c8
Author | SHA1 | Date | |
---|---|---|---|
879c40d3c8 | |||
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
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 0cb5b0992bbb6cdd3919ab412a8fc3c6327bae8e
|
||||
Subproject commit 7cf8b4b626b02380a4fbdf4b74dec64b689cecf8
|
Loading…
x
Reference in New Issue
Block a user