Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion config/src/window_rules/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,15 @@ pub fn tiling_exceptions(context: &cosmic_config::Config) -> Vec<ApplicationExce
let custom = context
.get::<Vec<PreciseApplicationException>>("tiling_exception_custom")
.unwrap_or_else(|why| {
tracing::error!("tiling exceptions custom config error: {why:?}");
if why.is_err() {
if let cosmic_config::Error::GetKey(_, err) = &why {
if err.kind() != std::io::ErrorKind::NotFound {
tracing::error!("tiling exceptions custom config error: {why}");
return Vec::new();
}
}
}
tracing::debug!("tiling exceptions custom config not present: {why}");
Vec::new()
});

Expand Down