From d32df53afddde732d8792400ea0b274e8c58f463 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Mon, 29 Apr 2024 12:16:33 +0100 Subject: [PATCH] bin/disorder-play-on-demand: Script to set up on-demand playing. --- Makefile | 2 +- bin/disorder-play-on-demand | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100755 bin/disorder-play-on-demand diff --git a/Makefile b/Makefile index e650635..8bfcef2 100644 --- a/Makefile +++ b/Makefile @@ -250,7 +250,7 @@ SCRIPTLINKS += fixsub SCRIPTLINKS += check-debsyms SCRIPTLINKS += check-blkdev-size SCRIPTLINKS += xremote -SCRIPTLINKS += remote-disorder +SCRIPTLINKS += disorder-play-on-demand remote-disorder SCRIPTLINKS += remote-slideshow ## Random odds and ends. diff --git a/bin/disorder-play-on-demand b/bin/disorder-play-on-demand new file mode 100755 index 0000000..cdf6887 --- /dev/null +++ b/bin/disorder-play-on-demand @@ -0,0 +1,9 @@ +#! /bin/sh -e + +hostname=$(hostname) +locking -fx $HOME/.disorder/$hostname-local.lock \ + sh -ec "exec >$HOME/.disorder/$hostname-local.log 2>&1 \ + \"\$@\"" . \ + disorder-ondemand -u$HOME/.disorder/passwd.local -- \ + disorder-playrtp -Apulseaudio -u$HOME/.disorder/passwd.local \ + --socket $HOME/.disorder/$hostname-local -- 2.11.0