diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2024-07-23 07:33:18 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2024-07-23 07:33:18 +0000 |
| commit | b319618af15b5afd9d0f63271bd09b4a4a27ad52 (patch) | |
| tree | c1d43ce9adecb1852de455c26e11342ae0902e7b /scripts | |
| parent | osc: kitty notifications: use xstrjoin() instead of xasprintf() (diff) | |
notify: XDG token is now expected to be prefixed with xdgtoken=
This patch modifies our stdout reader to consume input as we go,
instead of all at once when stdout is closed. This will make it easier
to add support for reading e.g. the daemon assigned notification ID in
the future, and also ensures we see the XDG activation token "as soon
as possible".
Furthermore, to be more future proof, require the XDG activation token
to be prefixed with 'xdgtoken=', and ignore other lines.
Thus, instead of treating *all* of stdout as the XDG activation token,
parse stdout line-by-line, and ignore everything that does not begin
with 'xdgtoken='. Everything (on that line) following 'xdgtoken=' is
treated as the activation token.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
