diff options
author | Jörg Thalheim <joerg@higgsboson.tk> | 2014-11-12 23:43:24 +0100 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2014-11-15 22:03:12 +0100 |
commit | 336ce9bbd7c620226d0ef01ba58c02be12f7b90e (patch) | |
tree | 5b0a621678799fcbb68add662b937087354989eb /README | |
parent | 50fd2334b6a720f798782f7690287b71642cb9a8 (diff) | |
download | vicious-legacy-336ce9bbd7c620226d0ef01ba58c02be12f7b90e.tar.xz |
shell escape variables before passing them to the shell
Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
Diffstat (limited to 'README')
-rw-r--r-- | README | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -224,8 +224,10 @@ vicious.widgets.wifi vicious.widgets.mbox - provides the subject of last e-mail in a mbox file - takes the full path to the mbox as an argument, or a table with - 1st field as path, 2nd as maximum lenght and 3rd (optional) as - widget name - if 3rd field is present scrolling will be used + 1st field as path, 2nd as maximum length and 3rd (optional) as + widget name - if 3rd field is present scrolling will be used (note: the + path will be escaped so special variables like ~ will not work, use + os.getenv("HOME").."mail" instead to access environment variables) - returns 1st value as the subject of the last e-mail vicious.widgets.mboxc @@ -244,7 +246,7 @@ vicious.widgets.mdir vicious.widgets.gmail - provides count of new and subject of last e-mail on Gmail - takes an (optional) argument, if it's a number subject will be - truncated, if a table, with 1st field as maximum lenght and 2nd + truncated, if a table, with 1st field as maximum length and 2nd the widget name (i.e. "gmailwidget"), scrolling will be used - keeps login information in the ~/.netrc file, example: machine mail.google.com login user password pass |