diff --git a/src/wallpaper/unix.rs b/src/wallpaper/unix.rs index 2f7c2a7..2936a01 100644 --- a/src/wallpaper/unix.rs +++ b/src/wallpaper/unix.rs @@ -11,12 +11,12 @@ pub fn set( command, arguments, .. - }: Wallpaper, + }: &Wallpaper, ) -> Result<(), Report> { info!("Setting wallpaper..."); if let Some(hook) = pre_hook { - spawn_hook(hook)? + spawn_hook(hook.to_string())? } let mut binding = Command::new(&command);