From df7368d4589ab9c59ebe9282493eb4a493a0fd55 Mon Sep 17 00:00:00 2001 From: Benjamyn Love Date: Sun, 10 Mar 2024 22:59:12 +1100 Subject: [PATCH] Made slightly nicer --- src/handlers/feh.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/handlers/feh.rs b/src/handlers/feh.rs index 61f0ec7..9ede4d2 100644 --- a/src/handlers/feh.rs +++ b/src/handlers/feh.rs @@ -10,6 +10,9 @@ pub fn change_wallpapers(wallpapers: &Wallpapers) { command.arg(wallpapers.random_selection(monitor).to_string()); } - let _result = command.output(); - println!("{:?}", command.get_args()); + let result = command.output(); + match result { + Ok(_) => {} + Err(e) => println!("{}", e), + } }