chiark / gitweb /
bin/disorder-play-on-demand: Script to set up on-demand playing.
[profile] / bin / disorder-play-on-demand
diff --git a/bin/disorder-play-on-demand b/bin/disorder-play-on-demand
new file mode 100755 (executable)
index 0000000..cdf6887
--- /dev/null
@@ -0,0 +1,9 @@
+#! /bin/sh -e
+
+hostname=$(hostname)
+locking -fx $HOME/.disorder/$hostname-local.lock \
+  sh -ec "exec </dev/null >>$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