Skip to content

Commit

Permalink
Enable wayland by default, fallback to X11
Browse files Browse the repository at this point in the history
  • Loading branch information
ghisvail committed May 9, 2022
1 parent c52aaf0 commit 1658bb3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions com.bitwarden.desktop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ finish-args:
- --share=ipc
- --share=network
- --socket=wayland
- --socket=x11
- --socket=fallback-x11
- --device=dri
- --env=XDG_CURRENT_DESKTOP=Unity
- --talk-name=org.kde.StatusNotifierWatcher
Expand Down Expand Up @@ -51,8 +51,12 @@ modules:
- type: script
dest-filename: bitwarden.sh
commands:
- export TMPDIR="$XDG_RUNTIME_DIR/app/$FLATPAK_ID"
- exec zypak-wrapper /app/Bitwarden/bitwarden "$@"
- export TMPDIR="${XDG_RUNTIME_DIR}/app/${FLATPAK_ID}"
- if [ "${XDG_SESSION_TYPE}" == "wayland" ]; then
- zypak-wrapper /app/Bitwarden/bitwarden --enable-features=UseOzonePlatform --ozone-platform=wayland "$@"
- else
- zypak-wrapper /app/Bitwarden/bitwarden "$@"
- fi
- type: file
path: com.bitwarden.desktop.appdata.xml

Expand Down

0 comments on commit 1658bb3

Please sign in to comment.