add bitwarden wrapper

This commit is contained in:
Aminda Suomalainen 2024-07-09 19:30:41 +03:00
parent 36f88b78bb
commit c2c19323df
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

9
bash/usr-local-bin/bitwarden Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -x
if [ -f /snap/bin/bitwarden ]; then
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/104
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
snap run bitwarden --ozone-platform=x11 --ozone-platform-hint=wayland --enable-features=WaylandWindowDecorations "$@"
fi
set +x