2024-03-04 11:11:55 +01:00
|
|
|
#!/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
|
2024-08-04 08:00:48 +02:00
|
|
|
snap run superproductivity --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@"
|
2024-03-04 11:11:55 +01:00
|
|
|
else
|
2024-08-04 08:00:48 +02:00
|
|
|
/usr/bin/superproductivity --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@"
|
2024-03-04 11:11:55 +01:00
|
|
|
fi
|
|
|
|
set +x
|