native wayland for vs code

This commit is contained in:
askiiart 2025-02-24 19:26:50 -06:00
parent 77ecbd4bc0
commit 80c76f755c
Signed by untrusted user who does not match committer: askiiart
GPG key ID: 6A32977DAF31746A
3 changed files with 9 additions and 2 deletions

View file

@ -126,6 +126,8 @@ elif command_exists "code-oss"; then
code-oss $(for ext in $(cat $GIT_DIR/vscode/extensions.txt); do echo -n "--install-extension $ext "; done)
cp $GIT_DIR/vscode/argv.json $HOME/.vscode-oss/argv.json
fi
# VS code: run in wayland natively
sudo sed '/^Exec=\/usr\/share\/code\/code\( --new-window\)\? %F$/ s/$/ --enable-features=UseOzonePlatform --ozone-platform=wayland/' -i /usr/share/applications/code.desktop
echo "restore.sh done!"