From bead40c7d0d8782f84749e610d2422b802101782 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 25 Apr 2015 15:09:25 +0200 Subject: add example audio-volume-control MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- doc/examples/audio-volume-control/init | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 doc/examples/audio-volume-control/init (limited to 'doc/examples/audio-volume-control/init') 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 + -- cgit v1.2.3-70-g09d2