mirror of
https://github.com/bitwarden/clients.git
synced 2026-07-07 21:10:55 +08:00
Some checks failed
Scan / Check PR run (push) Has been cancelled
Testing / Run typechecking (push) Has been cancelled
Testing / Run tests - ${{ matrix.test-group.name }} (map[artifact:jest-coverage-browser junit:junit-browser.xml name:Browser paths:apps/browser bitwarden_license/bit-browser]) (push) Has been cancelled
Testing / Run tests - ${{ matrix.test-group.name }} (map[artifact:jest-coverage-cli junit:junit-cli.xml name:CLI paths:apps/cli bitwarden_license/bit-cli]) (push) Has been cancelled
Testing / Run tests - ${{ matrix.test-group.name }} (map[artifact:jest-coverage-desktop junit:junit-desktop.xml name:Desktop paths:apps/desktop]) (push) Has been cancelled
Testing / Run tests - ${{ matrix.test-group.name }} (map[artifact:jest-coverage-libs junit:junit-libs.xml name:Libs paths:libs bitwarden_license/bit-common]) (push) Has been cancelled
Testing / Run tests - ${{ matrix.test-group.name }} (map[artifact:jest-coverage-web junit:junit-web.xml name:Web paths:apps/web bitwarden_license/bit-web]) (push) Has been cancelled
Testing / Run Rust tests on ${{ matrix.os }} (macos-14) (push) Has been cancelled
Testing / Run Rust tests on ${{ matrix.os }} (ubuntu-22.04) (push) Has been cancelled
Testing / Run Rust tests on ${{ matrix.os }} (windows-2022) (push) Has been cancelled
Testing / Rust Coverage (push) Has been cancelled
Scan / Checkmarx (push) Has been cancelled
Scan / Sonar (push) Has been cancelled
Testing / Upload to Codecov (push) Has been cancelled
Testing / Run tests (push) Has been cancelled
30 lines
942 B
Bash
30 lines
942 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
|
|
|
|
# fix Bitwarden logo tray icon not appearing with the Snap on GNOME
|
|
if [ -n "$SNAP" ]; then
|
|
export XDG_CURRENT_DESKTOP=Unity
|
|
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 "$@"
|