We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f6acea commit 94f91c5Copy full SHA for 94f91c5
contrib/cmus_all.lua
@@ -11,12 +11,10 @@ local string = { gmatch = string.gmatch, format = string.format }
11
local helpers = require("vicious.helpers")
12
-- }}}
13
14
-
15
-- Cmus: provides CMUS information
16
-- vicious.widgets.cmus
17
local cmus_all = {}
18
19
20
-- {{{ CMUS widget type
21
local function worker(format, warg)
22
local cmus_state = {
@@ -42,7 +40,7 @@ local function worker(format, warg)
42
40
end
43
41
44
-- Get data from CMUS server
45
- local f = io.popen("cmus-remote --query --server " .. helpers.escape(host))
+ local f = io.popen("cmus-remote --query --server " .. helpers.shellquote(host))
46
47
for line in f:lines() do
48
for module, value in string.gmatch(line, "([%w]+) (.*)$") do
0 commit comments