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 config option to use sudo before command #11

Open
barrar opened this issue May 31, 2021 · 2 comments
Open

Add config option to use sudo before command #11

barrar opened this issue May 31, 2021 · 2 comments

Comments

@barrar
Copy link

barrar commented May 31, 2021

I made the following changes to extension.js

let command = ['sudo', 'systemctl', setstatus, service];

let command = ['sudo', 'systemctl', 'status', service];

My user account is authorized to use sudo without a password, now I never need to type a password.

Perhaps this could be added to the config options? I could create a pull request but I have not worked with gnome extensions very much.

EDIT: I had to use 'sudo', 'systemctl' rather than 'sudo systemctl'

@atareao
Copy link
Owner

atareao commented Aug 23, 2021

Fixed for GNOME 40 on tag https://github.com/atareao/wireguard-indicator/releases/tag/v6

@ipeacocks
Copy link

Seems sudo option still doesn't working.

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

No branches or pull requests

3 participants