Allowing sudo command as notification action #250
-
This may not be so much related to Deadd as I'm new to LInux, but I cannot find a consensus on how to execute notification actions that require sudo, for example a button that run "sudo shutdown" in the notification center. I've tried running the deadd-notification-center as sudo without much success but I don't even know if that's the proper way to do that.
As you can see here I can launch the deadd-notification-center without issue but as soon as I use sudo it doesn't work and I don't see simple solutions (but again I'm not experimented in Linux so maybe that's just that). Any help would be appreciated, thanks a lot 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey, you'll want to look into the sudoers file to allow running shutdown without the use of sudo or without the use of a password. Take a look at this Stackoverflow post: https://askubuntu.com/questions/168879/shutdown-from-terminal-without-entering-password/168885#168885 |
Beta Was this translation helpful? Give feedback.
Hey, you'll want to look into the sudoers file to allow running shutdown without the use of sudo or without the use of a password. Take a look at this Stackoverflow post: https://askubuntu.com/questions/168879/shutdown-from-terminal-without-entering-password/168885#168885