mirror of
https://github.com/bitwarden/browser
synced 2025-12-23 19:53:43 +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:
21
apps/desktop/resources/linux-wrapper.sh
Normal file
21
apps/desktop/resources/linux-wrapper.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
|
||||
# disable core dumps
|
||||
ulimit -c 0
|
||||
|
||||
# might be behind symlink
|
||||
RAW_PATH=$(readlink -f "$0")
|
||||
APP_PATH=$(dirname $RAW_PATH)
|
||||
|
||||
# force use of base image libdus in snap
|
||||
if [ -e "/usr/lib/x86_64-linux-gnu/libdbus-1.so.3" ]
|
||||
then
|
||||
export LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libdbus-1.so.3"
|
||||
fi
|
||||
|
||||
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