The greeter daemon runs as root without HOME set, so xdg::BaseDirectories resolved the state dir against root's environment and never found the user's cosmic-comp output layout. The greeter therefore came up with the default monitor arrangement instead of the saved one. Resolve the home directory from the passwd entry of the user being described, read ~/.local/state/cosmic-comp/outputs.ron directly, and fall back to an empty list when the file is absent. Also revert the two version fields that the 1.3.0 bulk bump rewrote by mistake: greetd_ipc has no 1.3.0 release, and the crate version is kept at 0.1.0 to stay consistent with Cargo.lock so --locked builds work. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| lib.rs | ||
| main.rs | ||