Small fixes
-
run: Launch locked by default The locked case is the interesting part for testing the greeter ;)
-
greetd: Ignore entries without DesktopNames Otherwise there's just
(phog:21054): GLib-CRITICAL **: 13:00:29.716: g_str_has_suffix: assertion 'str != NULL' failed
with little way for the user to figure out what file caused the problem.
-
greetd: Handle unset last session gracefully If a user was never logged in there's no last session so just assume the first one listed.
-
greetd: Don't crash on NULL socket Rather check it early
For one this allows to run greetd in a nested session but also helps with the running greeter when there's no last session.
Edited by Guido Günther