Improve handling of startup order
This commit is contained in:
parent
c19015f792
commit
6a7b64ccbb
@ -1,5 +1,6 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Control PulseAudio with a Midi device
|
Description=Control PulseAudio with a Midi device
|
||||||
|
After=pulseaudio.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/pamidi
|
ExecStart=/usr/bin/pamidi
|
||||||
|
@ -38,6 +38,11 @@ initialize(){
|
|||||||
else
|
else
|
||||||
echo "xdotool found"
|
echo "xdotool found"
|
||||||
fi
|
fi
|
||||||
|
echo "Waiting for pulseaudio service to start..."
|
||||||
|
while [ ! $(systemctl --machine=joey@.host --user status pamidi.service) ]; do
|
||||||
|
echo "Pulseaudio service not started, waiting..."
|
||||||
|
sleep 2
|
||||||
|
done
|
||||||
col_1_app_pid=-1
|
col_1_app_pid=-1
|
||||||
col_2_app_pid=-1
|
col_2_app_pid=-1
|
||||||
col_3_app_pid=-1
|
col_3_app_pid=-1
|
||||||
@ -48,6 +53,7 @@ initialize(){
|
|||||||
col_8_app_pid=-1
|
col_8_app_pid=-1
|
||||||
assign_profile_1
|
assign_profile_1
|
||||||
print_col_app_ids
|
print_col_app_ids
|
||||||
|
echo "Initialized pamidi"
|
||||||
notify-send "Initialized pamidi"
|
notify-send "Initialized pamidi"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user