Skip to content

Commit

Permalink
fix: sudo should not be needed for a reboot (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
cat-master21 authored Sep 23, 2023
1 parent 96be04d commit 7183988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/done.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ impl SimpleComponent for DoneModel {
fn update(&mut self, message: Self::Input, _sender: ComponentSender<Self>) {
match message {
Self::Input::Reboot => {
Command::new("pkexec").arg("/sbin/reboot").status().unwrap();
Command::new("/sbin/reboot").status().unwrap();
},
Self::Input::SwitchToErrorState => {
self.error_state = true;
Expand Down

0 comments on commit 7183988

Please sign in to comment.