[Feature Request] Launcher 'checked' button behaviour
Hello,
Would it be possible to have a configuration option (xfconf/GUI setting) to have the builtin Launcher
plugin behave like a checked/toggle button with respect to the command it spawns? In particular, when this mode is active, when the button is clicked the command is spawned and so long as the spawn was successful and the child process remains alive the button transitions to the toggled/checked state. When the child process dies the button transitions back to its untoggled/unchecked state.
Adding this behavior to the launcher plugin (while I'm suggesting it as an optional setting, it could be made the default) brings it more inline with the behavior of other xfce4-panel plugins (both internal and external). Namely, the ability to provide visual feedback to the user concerning the spawned command (a CSS state/style could even set if the spawn failed, allowing the button to be flashed red or some such, however, this transition/action should be implemented in the users CSS theme).
Implementation wise, the groundwork looks to already be in place. Should be a matter of creating a CheckedButton/ToggleButton
and using xfce_spawn_on_screen_with_child_watch
.
Thanks,