No description
Find a file
Lily Foster a114971a67
Fix race condition when getting login session
If `org.freedesktop.login1.Manager.GetSessionByPID` is called after
cosmic-session puts it in a new systemd scope, it will no longer find
the login session as it would have been removed out of the login session
scope.

Most of the time, cosmic-greeter gets to that line before the scope is
changed, but sometimes (particularly on slower systems or virtual
machines) this race can be lost and lead to cosmic-greeter failing to
start and preventing lockscreen from working.

This commit solves that race condition by always checking the parent PID
instead (which would be cosmic-session which is always present in the
login session scope), and all POSIX-y systems should support using parent
PID.
2024-09-22 17:04:23 -04:00
cosmic-greeter-config Default to user's previously selected session 2024-08-28 22:55:08 -04:00
daemon improv(greeter): use subscription for handling greetd IPC socket 2024-07-31 13:41:31 +02:00
dbus Add daemon to proxy user backgrounds 2024-02-06 15:03:07 -07:00
debian Add custom PAM configuration to start gnome-keyring 2024-09-06 10:34:37 -06:00
examples Add custom PAM configuration to start gnome-keyring 2024-09-06 10:34:37 -06:00
i18n Create Dutch translation 2024-09-06 15:55:19 -10:00
res Update fallback background 2024-08-02 09:42:34 -06:00
src Fix race condition when getting login session 2024-09-22 17:04:23 -04: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
Cargo.lock Merge pull request #112 from joshuamegnauth54/issue-109-restore-user-session-choice 2024-09-06 10:50:37 -06:00
Cargo.toml Merge pull request #112 from joshuamegnauth54/issue-109-restore-user-session-choice 2024-09-06 10:50:37 -06:00
cosmic-greeter.toml Add custom PAM configuration to start gnome-keyring 2024-09-06 10:34:37 -06:00
i18n.toml Add localization 2024-05-07 10:07:48 -06:00
justfile support CARGO_TARGET_DIR 2024-07-15 08:08:37 -06:00
LICENSE Initial commit 2023-09-29 09:23:23 -06:00
README.md Initial commit 2023-09-29 09:23:23 -06:00

cosmic-greeter

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