From a6ef9d3d220e949833d912b532f15869b33b56a8 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Fri, 20 Mar 2026 11:02:27 +0200 Subject: [PATCH] syncplay: add systemd-inhibit --- bash/usr-local-bin/syncplay | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/bash/usr-local-bin/syncplay b/bash/usr-local-bin/syncplay index c86c5e5..328c25d 100755 --- a/bash/usr-local-bin/syncplay +++ b/bash/usr-local-bin/syncplay @@ -4,6 +4,16 @@ set -x export LC_ALL=C.utf8 +INHIBITWHO=Syncplay + +if [ -f "$HOME/.local/bin/_a-usrlocalbin-functions.bash" ]; then + . $HOME/.local/bin/_a-usrlocalbin-functions.bash +elif [ -f /usr/local/bin/_a-usrlocalbin-functions.bash ]; then + . /usr/local/bin/_a-usrlocalbin-functions.bash +else + echo "Library _a-usrlocalbin-functions.bash not found." + exit 1 +fi if ! hash xdg-user-dir 2> /dev/null; then echo "xdg-user-dir is required for my laziness" @@ -46,7 +56,7 @@ fi # finally launch the syncplay with any flags specified . ~/src/github.com/syncplay/syncplay/venv/bin/activate -~/src/github.com/syncplay/syncplay/syncplayClient.py "$@" +_inhibitshutdowncmd ~/src/github.com/syncplay/syncplay/syncplayClient.py "$@" # my syncplay launcher says this is a terminal app, so in case something goes # wrong, let it stay open for a moment for me to see what. echo ""