Age | Commit message (Collapse) | Author |
|
Draw methods based on Segments don't keep enough information to fill in
correctly a list of actions. With this implementation, we introduce empty
actions as markers where Runnable instances can be inserted. Triggering them
is then just calling the corresponding Exec method, onClick.
Conceivably, onClick could receive some kind of additional state, but that's
better done as a base Plugin instance that keeps state and makes it available
via its onClick function, for instance.
Very lightly tested, needs documentation and extending the plugin example to
include an onClick method.
|
|
This effectively reverts c54d93e and 991a168. While those fix #687 and
#688 respectively in the case where the configuration is recompiled, in
all other cases they leave zombie processes, since they undo the fix for
#181.
However, instead of reverting to the deprecated system function, we use
the newer spawnCommand and waitForProcess. And like with 991a168, the
low battery action now runs in the background to avoid blocking the bar.
|
|
This should address the problems reported in issue #688
|
|
|
|
|