Skip to content

Conversation

ids1024
Copy link
Member

@ids1024 ids1024 commented Aug 22, 2025

As noted in pop-os/cosmic-comp#1603, there's no need to a system default config file for this particular setting. So as an alternative to that PR, we can ensure this isn't printed as an error.

As noted in the description of pop-os/libcosmic#948, if the system default is not present, Error::GetKey is returned, without mapping to the Error::NotFound variant. So check for that, as well as .is_err().

As noted in pop-os/cosmic-comp#1603, there's no
need to a system default config file for this particular setting. So as
an alternative to that PR, we can ensure this isn't printed as an error.

As noted in the description of
pop-os/libcosmic#948, if the system default is
not present, `Error::GetKey` is returned, without mapping to the
`Error::NotFound` variant. So check for that, as well as `.is_err()`.
ids1024 added a commit to pop-os/libcosmic that referenced this pull request Aug 22, 2025
Like pop-os/cosmic-settings-daemon#100. We don't
appear to install default configs for these settings anywhere? And we
may not want libcosmic to inherently depend on globally installed config
files.

So just avoid printing errors in that case.

We may want to consider what errors `ConfigGet` returns
(#948) but this should do for
now.

This should help with a big part of the log spam libcosmic is currently
producing.
@mmstick mmstick merged commit 3f72461 into master Aug 22, 2025
6 checks passed
@mmstick mmstick deleted the tiling-exception branch August 22, 2025 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants