If music server is not running, pass command to music server
This commit is contained in:
parent
d9b13c9ccd
commit
af7124663c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue