1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-06 18:43:25 +00:00

[PM-10448] Enable wayland where possible in Linux Desktop (#10359)

* Enable wayland where possible

* Update electron to 34.4.0

* Re-add snap libdbus fix

* Flatpak permissions for wayland

* Bump electron version to 35.5.1

* Switch to x11 socket from x11-fallback

* Fix package.json
This commit is contained in:
Bernd Schoolmann
2025-07-16 17:21:12 +02:00
committed by GitHub
parent 60855c734f
commit 5b27988454
4 changed files with 11 additions and 4 deletions

View File

@@ -8,6 +8,9 @@ command: bitwarden.sh
finish-args:
- --share=ipc
- --share=network
- --socket=wayland
# This should be fallback-x11, but on gnome/mutter, zwlr_data_control_manager_v1 is not implemented
# so we need to use x11 as a fallback to make copy paste work
- --socket=x11
- --device=dri
- --env=XDG_CURRENT_DESKTOP=Unity

View File

@@ -13,6 +13,9 @@ then
export LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libdbus-1.so.3"
fi
# pass through all args
$APP_PATH/bitwarden-app "$@"
PARAMS="--enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform-hint=auto"
if [ "$USE_X11" = "true" ]; then
PARAMS=""
fi
$APP_PATH/bitwarden-app $PARAMS "$@"