Skip to content

Commit

Permalink
🔨 Enable Wayland as default
Browse files Browse the repository at this point in the history
  • Loading branch information
noonsleeper committed Feb 20, 2024
1 parent e7b5677 commit 61a58b4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@ Please open issues under: https://github.com/flathub/com.vscodium.codium/issues

## FAQ

### Wayland vs X11
If you have problems to start this flatpak under X11 please run one of these two
commands and try again

```bash
# Only disable wayland to force fallback on xwayland
flatpak override --user --nosocket=wayland com.vscodium.codium
# or
# Disable wayland and able X11
flatpak override --user --socket=x11 --nosocket=wayland com.vscodium.codium
```

Is also recommended to run `flatpak permission-reset com.vscodium.codium`

### About the access to the host filesystem
Note that vscodium is granted *full access to your home directory*.
You can use `flatpak override` to locally adjust this if you prefer to sandbox vscodium file system access:
```
Expand Down
6 changes: 3 additions & 3 deletions com.vscodium.codium.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ finish-args:
- --share=ipc
- --socket=wayland
- --socket=fallback-x11
- --nosocket=x11
- --socket=pulseaudio
- --socket=ssh-auth
- --share=network
Expand Down Expand Up @@ -134,9 +135,8 @@ modules:
'/app/share/codium/resources/app/out/cli.js',
'--ms-enable-electron-run-as-node',
'--extensions-dir', '$XDG_DATA_HOME/codium/extensions',
'--enable-features=UseOzonePlatform,WaylandWindowDecorations',
'--ozone-platform-hint=auto'
'--ozone-platform-hint=auto',
'--enable-features=WaylandWindowDecorations',
]
- -Dprogram_name=codium
- -Deditor_title=VSCodium
Expand Down

0 comments on commit 61a58b4

Please sign in to comment.