mirror of
https://github.com/bitwarden/browser
synced 2026-01-29 15:53:45 +00:00
25 lines
811 B
Bash
25 lines
811 B
Bash
#!/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 libdbus 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
|
|
|
|
# A bug in Electron 39 (which now enables Wayland by default) causes a crash on
|
|
# systems using Wayland with hardware acceleration. Platform decided to
|
|
# configure Electron to use X11 (with an opt-out) until the upstream bug is
|
|
# fixed. The follow-up task is https://bitwarden.atlassian.net/browse/PM-31080.
|
|
PARAMS="--enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform-hint=auto"
|
|
if [ "$USE_X11" != "false" ]; then
|
|
PARAMS="--ozone-platform=x11"
|
|
fi
|
|
|
|
$APP_PATH/bitwarden-app $PARAMS "$@"
|