aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/audio-volume-control/init
blob: a4291742a5f531f5b35f70685efe7815c5bf31d0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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