Add config option to use `sudo` before command
Opened this issue · 2 comments
barrar commented
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 commented
Fixed for GNOME 40 on tag https://github.com/atareao/wireguard-indicator/releases/tag/v6
ipeacocks commented
Seems sudo
option still doesn't working.