From 841f90fb6e44ba76ba1369d137bd56bb7f9a75e5 Mon Sep 17 00:00:00 2001 From: Dennis Date: Tue, 27 Nov 2018 14:07:18 +0100 Subject: [PATCH] Root access is not necessary anymore for list subcommand --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index ab0077a..2528464 100644 --- a/src/main.rs +++ b/src/main.rs @@ -164,7 +164,6 @@ fn main() { let opt = Opt::from_args(); welcome(); - check_sudo(); // All options that don't need the device to be open // Print all keys and exit application @@ -176,6 +175,8 @@ fn main() { _ => { /* Do nothing, there are still lots of other options further below */ } } + check_sudo(); + let mut pedals = pedal_operations::Pedals::new(); // Make sure that the application does not purge pedals that are not explicitly set