Skip to content

Support for running foreground process #23

Open

Description

@tonybolzan

Ability to run a foreground process, and keep the button active while the process is running, and clicking to deactivate sends SIGTERM.
Instead of having commands for Toogle ON, Toogle OFF, Check Status.
You only need Command, ex.: nginx -g 'daemon off;' and the button is active while the command is running.

Activity

  1. StorageB commented on Feb 15, 2026

    @StorageB
    Owner

    This is an interesting idea. However, after looking into it, I think this is out of scope for this extension, at least for right now. Having an extension supervise/manage any long-running processes the user may launch introduces several reliability and design issues.

    It is not currently supported, but I plan to add support for DBus events in the future per this issue to eliminate the need for polling a service to get its status.

    With that, a better approach for your use case would then be to create a user systemd service to start and stop the process, and then have the extension sync the toggle state via DBus. Systemd is much better equipped to handle this rather than the extend itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions