fixed a small problem when mpd deamon gets lunched on first executin from i3blocks without any interaction
This commit is contained in:
parent
41c2b1c3bf
commit
f8707672a0
|
@ -31,6 +31,7 @@ def main():
|
|||
client.connect("localhost", 6600)
|
||||
except ConnectionRefusedError:
|
||||
# mpd is not connecting, try to start
|
||||
if mpc_command == 'toggle':
|
||||
output = subprocess.run(["mpd"], capture_output=True)
|
||||
if output.returncode == 0:
|
||||
# connect
|
||||
|
|
Loading…
Reference in New Issue