get rid of unnecessary thing for vs code

This commit is contained in:
askiiart 2025-03-04 12:02:16 -06:00
parent 3a13e1fb78
commit e67c8c204d
Signed by untrusted user who does not match committer: askiiart
GPG key ID: 6A32977DAF31746A
2 changed files with 2 additions and 2 deletions

View file

@ -68,4 +68,4 @@ end
# run code in wayland natively
# TODO: just add it to the args file instead
alias code="code --enable-features=UseOzonePlatform --ozone-platform=wayland"
alias code="code --ozone-platform=wayland"

View file

@ -129,7 +129,7 @@ elif command_exists "code-oss"; then
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
sudo sed '/^Exec=\/usr\/share\/code\/code\( --new-window\)\? %F$/ s/$/ --ozone-platform=wayland/' -i /usr/share/applications/code.desktop
echo "restore.sh done!"