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:
@@ -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
|
||||
|
||||
@@ -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 "$@"
|
||||
Reference in New Issue
Block a user