bash/usr-local-bin/superproductivity snap wrapper

This commit is contained in:
Aminda Suomalainen 2024-03-04 12:11:55 +02:00
parent 4e9e82db8e
commit c3c4f6d93c
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
1 changed files with 10 additions and 0 deletions

View File

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