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

Run Command Plugin: use systemctl for "Restart" and "Power Off" commands. #1560

Merged
merged 2 commits into from Feb 8, 2023

Conversation

pesader
Copy link
Contributor

@pesader pesader commented Jan 31, 2023

This is a follow up to my previous PR, #1557.

Before this PR, the "Power Off", "Reboot", and "Log Out" commands displayed a confirmation dialog when ran. While this is a much welcome safety net when using the computer normally, it becomes annoying when running the commands remotely from a phone (requiring the user to go into Remote Input to click and confirm the operation).

Since we discussed it was okay to rely on systemd, I rewrote the commands for "Restart" and "Power Off" using systemctl.

@pesader pesader marked this pull request as draft January 31, 2023 22:33
@pesader pesader marked this pull request as ready for review January 31, 2023 22:44
@pesader
Copy link
Contributor Author

pesader commented Jan 31, 2023

I tested running the "Log Out" command multiple times from my phone, and after a few runs every extension in my computer is disabled. It seems GNOME Shell is interpreting these logouts as an unintentional defect.

In that case, should we keep the "Log Out" command?

@andyholmes
Copy link
Collaborator

In that case, should we keep the "Log Out" command?

Hmm, not sure. Maybe keep it for now, let folks open bugs to see if its just a "you" issue?

@pesader
Copy link
Contributor Author

pesader commented Feb 5, 2023

Sounds good :)

Since the flag --force seems to be ignored by gnome-session-quit, it is
better to use systemd for the "Restart" and "Power Off" commands. Unilike
gnome-session-quit, these new commands do not show a confirmation
dialog when ran.
@andyholmes andyholmes enabled auto-merge (rebase) February 8, 2023 20:17
@andyholmes andyholmes merged commit da18516 into GSConnect:main Feb 8, 2023
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.

None yet

2 participants