From b1eb01effcd41cc643a8de9fb20d2100c0886fec Mon Sep 17 00:00:00 2001 From: Erica Z Date: Sat, 23 Nov 2024 15:14:18 +0100 Subject: [PATCH] silence error --- src/ui/window.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ui/window.rs b/src/ui/window.rs index 9e581c0..09b18a7 100644 --- a/src/ui/window.rs +++ b/src/ui/window.rs @@ -176,7 +176,8 @@ mod imp { // wipe state directory on init (gets rid of stale mpris cover art) let state_home = audrey::globals::xdg_dirs().get_state_home(); - std::fs::remove_dir_all(state_home).expect("could not remove xdg state home"); + // silence error (its okay if it does not exist) + let _ = std::fs::remove_dir_all(state_home); if let Some(display) = gdk::Display::default() { gtk::style_context_add_provider_for_display(&display, &self.css_provider, 420);