mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2025-08-19 12:57:21 +02:00
Compare commits
No commits in common. "879c40d3c8814fc71f6b605d96b201dede95e5b9" and "846033e922bf9127c5ff997282d2270a78f1c4d9" have entirely different histories.
879c40d3c8
...
846033e922
@ -1,26 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# TODO! Enable wayland support by swapping x11 with wayland! Currently broken.
|
||||
# https://github.com/microsoft/vscode/issues/202072
|
||||
|
||||
set -x
|
||||
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
|
||||
# https://github.com/flathub/com.vscodium.codium/issues/55
|
||||
flatpak run com.vscodium.codium --no-sandbox --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@"
|
||||
set +x
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 7cf8b4b626b02380a4fbdf4b74dec64b689cecf8
|
||||
Subproject commit 0cb5b0992bbb6cdd3919ab412a8fc3c6327bae8e
|
Loading…
x
Reference in New Issue
Block a user