Escape passwords
This commit is contained in:
parent
95f460d78d
commit
26793c6bdd
|
@ -20,14 +20,14 @@ local password1 = ''
|
|||
local password2 = ''
|
||||
local password3 = ''
|
||||
|
||||
awful.spawn.easy_async_with_shell('pass web/mail.ovh.com; pass web/webmail.gandi.net; pass web/inp-toulouse.fr;', function(stdout)
|
||||
awful.spawn.easy_async_with_shell('pass web/mail.ovh.com; pass web/webmail.gandi.net; pass web/cas.inp-toulouse.fr;', function(stdout)
|
||||
s = split(stdout, '\n')
|
||||
password1 = s[1]
|
||||
password2 = s[2]
|
||||
password3 = s[3]
|
||||
|
||||
watch(
|
||||
"bash -c '" .. home .. "/.config/awesome/awesome-wm-widgets/email-widget/count_unread_emails.py " .. password1 .. " " .. password2 .. " " .. password3 .. "'", 60,
|
||||
"bash -c '" .. home .. "/.config/awesome/awesome-wm-widgets/email-widget/count_unread_emails.py \"" .. password1 .. "\" \"" .. password2 .. "\" \"" .. password3 .. "\"'", 60,
|
||||
function(widget, stdout, stderr, exitreason, exitcode)
|
||||
local unread_emails_num = tonumber(stdout) or 0
|
||||
|
||||
|
@ -65,7 +65,7 @@ function split(str, delimiter)
|
|||
end
|
||||
|
||||
function show_emails(timeout)
|
||||
awful.spawn.easy_async_with_shell(home .. "/.config/awesome/awesome-wm-widgets/email-widget/read_unread_emails.py " .. password1 .. " " .. password2 .. " " .. password3,
|
||||
awful.spawn.easy_async_with_shell(home .. "/.config/awesome/awesome-wm-widgets/email-widget/read_unread_emails.py \"" .. password1 .. "\" \"" .. password2 .. "\" \"" .. password3 .."\"",
|
||||
function(stdout, stderr, reason, exit_code)
|
||||
|
||||
s = split(stderr, '\n')
|
||||
|
|
Loading…
Reference in New Issue