diff --git a/cosmic-config/src/dbus.rs b/cosmic-config/src/dbus.rs index e66d8556..f8256bc3 100644 --- a/cosmic-config/src/dbus.rs +++ b/cosmic-config/src/dbus.rs @@ -156,8 +156,16 @@ fn watcher_stream config, Err((errors, default)) => { - if !errors.is_empty() { - eprintln!("Error getting config: {config_id} {errors:?}"); + for why in &errors { + if why.is_err() { + if let crate::Error::GetKey(_, err) = &why { + if err.kind() == std::io::ErrorKind::NotFound { + // No system default config installed; don't error + continue; + } + } + tracing::error!("error getting config: {config_id} {why}"); + } } default } @@ -171,7 +179,7 @@ fn watcher_stream