diff --git a/contrib/cmus_all.lua b/contrib/cmus_all.lua index d0c74cd..17c4745 100644 --- a/contrib/cmus_all.lua +++ b/contrib/cmus_all.lua @@ -11,12 +11,10 @@ local string = { gmatch = string.gmatch, format = string.format } local helpers = require("vicious.helpers") -- }}} - -- Cmus: provides CMUS information -- vicious.widgets.cmus local cmus_all = {} - -- {{{ CMUS widget type local function worker(format, warg) local cmus_state = { @@ -42,7 +40,7 @@ local function worker(format, warg) end -- Get data from CMUS server - local f = io.popen("cmus-remote --query --server " .. helpers.escape(host)) + local f = io.popen("cmus-remote --query --server " .. helpers.shellquote(host)) for line in f:lines() do for module, value in string.gmatch(line, "([%w]+) (.*)$") do