aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/audio-volume-control/init
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/audio-volume-control/init')
-rwxr-xr-xdoc/examples/audio-volume-control/init12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/examples/audio-volume-control/init b/doc/examples/audio-volume-control/init
new file mode 100755
index 0000000..a429174
--- /dev/null
+++ b/doc/examples/audio-volume-control/init
@@ -0,0 +1,12 @@
+#!/bin/sh
+bus create "/tmp/example-bus"
+
+# The following code is more suitable in the real world,
+# if used, the other files should use "${BUS_AUDIO}"
+# instead of "/tmp/example-bus".
+#
+# export BUS_AUDIO="${XDG_RUNTIME_DIR}/bus/audio"
+# if [ ! -f "${BUS_AUDIO}" ]; then
+# bus create "${BUS_AUDIO}"
+# fi
+