No description
Find a file
Lionel DARNIS bf630a4b57 fix(daemon): resolve outputs.ron from the user's passwd home
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>
2026-08-07 16:29:20 +02:00
.github Add pull request template 2026-02-13 12:35:27 -07:00
.zed chore: add rustfmt config 2026-04-29 00:20:17 +02:00
cosmic-greeter-config chore: add rustfmt config 2026-04-29 00:20:17 +02:00
daemon fix(daemon): resolve outputs.ron from the user's passwd home 2026-08-07 16:29:20 +02:00
dbus Add daemon to proxy user backgrounds 2024-02-06 15:03:07 -07:00
debian chore: cleanup 2025-08-29 10:29:15 -04:00
examples chore: add rustfmt config 2026-04-29 00:20:17 +02:00
i18n i18n: translation updates from weblate 2026-06-23 09:01:23 +02:00
res Update fallback background 2024-08-02 09:42:34 -06:00
src fix: adapt to cosmic-theme background(transparent) accessor 2026-07-03 18:21:18 +02:00
.gitattributes Update fallback background 2024-08-02 09:42:34 -06:00
.gitignore Add daemon to proxy user backgrounds 2024-02-06 15:03:07 -07:00
build.rs Fix vergen generation 2025-03-25 15:13:50 -06:00
Cargo.lock fix(daemon): resolve outputs.ron from the user's passwd home 2026-08-07 16:29:20 +02:00
Cargo.toml fix(daemon): resolve outputs.ron from the user's passwd home 2026-08-07 16:29:20 +02:00
cosmic-greeter-start.sh chore: cleanup logs 2025-09-12 23:47:22 +02:00
cosmic-greeter.toml feat: introduce cosmic-greeter-start for state cleanup 2025-08-12 10:59:29 -05:00
i18n.toml Add localization 2024-05-07 10:07:48 -06:00
justfile fix(justfile): bash syntax error if SOURCE_GIT_HASH was set 2026-06-24 17:03:08 +02:00
LICENSE Initial commit 2023-09-29 09:23:23 -06:00
README.md docs: Add note about vendored build commands 2025-11-12 19:03:55 -07:00
rust-toolchain.toml chore: update dependencies 2026-04-29 00:20:17 +02:00
rustfmt.toml chore: add rustfmt config 2026-04-29 00:20:17 +02:00

cosmic-greeter

libcosmic greeter for greetd, which can be run inside cosmic-comp

Development

This project uses just as a command runner.

Available Commands

Building

  • just build-debug - Compile with debug profile
  • just build-release - Compile with release profile (default)
  • just build-vendored - Compile release profile with vendored dependencies
    • Requires vendoring first, which can be done with just vendor

Testing & Development

  • just mock - Run greeter in a windowed compositor for quick testing (builds and runs the mock server example)
  • just run - Run with debug logs (RUST_LOG=debug and RUST_BACKTRACE=full)

Code Quality

  • just check - Run clippy linter with pedantic warnings
  • just check-json - Run clippy with JSON output format

Installation

  • just install - Install all files (binary, daemon, D-Bus config, systemd files)
  • just install-debian - Install only Debian package required files
  • just uninstall - Remove all installed files

Cleanup

  • just clean - Run cargo clean
  • just clean-dist - Run cargo clean and remove vendored dependencies

Vendoring

  • just vendor - Vendor dependencies locally and create vendor.tar
  • just vendor-extract - Extract vendored dependencies from vendor.tar