diff --git a/code.sh b/code.sh index de8d0ec..2173486 100755 --- a/code.sh +++ b/code.sh @@ -4,6 +4,7 @@ set -e shopt -s nullglob FIRST_RUN="${XDG_CONFIG_HOME}/flatpak-vscode-first-run" +WAYLAND_OPTS="" function msg() { echo "flatpak-vscode: $*" >&2 @@ -14,6 +15,10 @@ if [ ! -f ${FIRST_RUN} ]; then touch ${FIRST_RUN} fi +if [ "$XDG_SESSION_TYPE" = "wayland" ]; then + WAYLAND_OPTS="--ozone-platform-hint=auto" +fi + PYTHON_SITEDIR=$(python3 <