atareao/wireguard-indicator

Add config option to use `sudo` before command

Opened this issue · 2 comments

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'

Seems sudo option still doesn't working.