1
0
mirror of https://github.com/bitwarden/browser synced 2024-12-12 01:08:06 +01:00
bitwarden-estensione-browser/apps/desktop/resources/memory-dump-wrapper.sh
Bernd Schoolmann 3508b4631d
Fix snap protocol handler (#11932)
Co-authored-by: Matt Bishop <mbishop@bitwarden.com>
2024-11-13 08:06:57 -05:00

19 lines
351 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 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
# pass through all args
$APP_PATH/bitwarden-app "$@"