1
0
mirror of https://gitea.blesmrt.net/mikaela/scripts.git synced 2025-05-04 22:37:21 +02:00

11 lines
431 B
Bash
Executable File

#!/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=wayland --enable-features=WaylandWindowDecorations "$@"
else
/usr/bin/superproductivity --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@"
fi
set +x