Last active
October 10, 2023 14:26
-
-
Save pojntfx/f9ef697bfa95de4a844989f2f467513e to your computer and use it in GitHub Desktop.
Enable Wayland for VSCode/VSCodium on Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# VSCodium: | |
sudo mv /usr/bin/codium /usr/bin/codium.original | |
echo '/usr/bin/codium.original --enable-features=UseOzonePlatform --ozone-platform=wayland "$1"' | sudo tee /usr/bin/codium | |
sudo chmod +x /usr/bin/codium | |
# VSCode: | |
sudo mv /usr/bin/code /usr/bin/code.original | |
echo '/usr/bin/code.original --enable-features=UseOzonePlatform --ozone-platform=wayland "$1"' | sudo tee /usr/bin/code | |
sudo chmod +x /usr/bin/code |
You're probably running into this bug: VSCodium/vscodium#1650
danke sehr. :)
Is this expected?
Warning: 'enable-features' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'ozone-platform' is not in the list of known options, but still passed to Electron/Chromium.
Yeah! The options are passed along to Electron, which then handles them for you.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
when i open vscodium, or teh wayland version. it opens for a second then quite.
why?