If music server is not running, pass command to music server

This commit is contained in:
Thomas Forgione 2018-07-23 18:59:06 +02:00
parent d9b13c9ccd
commit af7124663c
No known key found for this signature in database
GPG Key ID: 3B8FC64F5BBFE109
1 changed files with 3 additions and 1 deletions

View File

@ -65,8 +65,10 @@ ret.execute_command = function(command, arg)
elseif start_server_command then elseif start_server_command then
-- Start the server and re-exec the command -- 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&') os.execute('music-server&')
try_noop()
else else
set_text('music-server not running') set_text('music-server not running')
end end