Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a command line flag for controlling systemd user mode #122

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

natefoo
Copy link
Member

@natefoo natefoo commented Dec 20, 2024

This is useful for example if you want to use Gravity to do a restart as a non-root user that has privileges to do so via PolicyKit.

return click.option(
"--user/--no-user",
default=None,
help="Use `systemctl/journalctl --user` (default: automatic depeending on whether run as root)",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
help="Use `systemctl/journalctl --user` (default: automatic depeending on whether run as root)",
help="Use `systemctl/journalctl --user` (default: automatic depending on whether run as root)",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants