From af7124663c2414b4aeb863dc380f61134f097edc Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Mon, 23 Jul 2018 18:59:06 +0200 Subject: [PATCH] If music server is not running, pass command to music server --- awesome/music.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/awesome/music.lua b/awesome/music.lua index 60a0255..fddc679 100644 --- a/awesome/music.lua +++ b/awesome/music.lua @@ -65,8 +65,10 @@ ret.execute_command = function(command, arg) elseif start_server_command then -- Start the server and re-exec the command + awful.spawn.easy_async({'music-server', command, arg}, function(stdout, stderr, reason, code) + + end) os.execute('music-server&') - try_noop() else set_text('music-server not running') end