diff options
author | Jon Gjengset <jon@thesquareplanet.com> | 2019-10-25 07:30:49 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-25 07:30:49 -0400 |
commit | b5d89350fd443b87217b7af6d00c956012387e80 (patch) | |
tree | 59116790379494d4276f44e1cba3f01efbfaf14d /README.md | |
parent | Allow noninteractive icon (#4) (diff) | |
parent | Remove now-unused fifo var from main() (diff) | |
download | mktrayicon-b5d89350fd443b87217b7af6d00c956012387e80.tar.gz mktrayicon-b5d89350fd443b87217b7af6d00c956012387e80.tar.bz2 mktrayicon-b5d89350fd443b87217b7af6d00c956012387e80.zip |
Merge pull request #6 from jonhoo/newline-handling
Handle newlines in params
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -33,6 +33,12 @@ Note that any script communicating with `mktrayicon` via the pipe **must**, for the time being, send `q` when they are done. Just removing the FIFO file will **not** cause the tray icon to be removed. +The command argument can be quoted with either `'` or `"` if you wish +it to include newlines. Other string interpolation may be added later. +Quoted strings are terminated by a matching quote at the end of a line +(ignoring whitespace). To escape a quote character at the end of a line +to continue a quoted string, prefix it with a `\`. + ## Why? Because I wanted to be able to create tray icons from bash without all the |