cosmic-comp/src/dbus
Victoria Brekenfeld b83e9f1d32 config: Make read_outputs failable
Previously we ignored when we had no output configuration
**and** failed to apply the automatically created one.

This leads to two problems:
- If this happens on startup, we end up with no outputs being added to the shell and we quit.
- If this happens later, we might end up in an inconsistent state, where the shell thinks we have an output, when it didn't light up for similar reasons.

Thus `read_outputs` is failable and handling that very much depends on
the where is was called from, because `read_outputs` doesn't know what
configuration was active before.

Thus make it failable and provide useful mitigations everywhere
possible:
- Try to enable just one output in case we fail on startup.
- Don't enable any additional outputs, when we fail on hotplug.
- Log the error like previously in any other case (and come up with more
  mitigations, once we understand these cases better).
2025-09-15 09:13:00 +02:00
..
logind.rs state/lid-inhibit: Take current lid state into account 2025-08-11 18:47:57 +02:00
mod.rs config: Make read_outputs failable 2025-09-15 09:13:00 +02:00
power.rs Update to zbus 5.x 2025-05-23 19:24:52 +02:00