mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-12-22 18:52:46 +01:00
bash/usr-local-bin/superproductivity snap wrapper
This commit is contained in:
parent
4e9e82db8e
commit
c3c4f6d93c
10
bash/usr-local-bin/superproductivity
Executable file
10
bash/usr-local-bin/superproductivity
Executable 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
|
Loading…
Reference in New Issue
Block a user