21namespace platf::prelogin {
41 std::vector<check_t> checks;
56 std::optional<bool> linger;
58 std::optional<sddm_settings_t>
sddm;
60 std::string virtual_display_backend;
79 std::string
from_boot_unit(std::string_view packaged_unit, std::string_view source_path);
101 std::string state_name(
state_e state);
124 int command(
const char *name,
int argc,
char *argv[]);
report_t report()
assess(collect_facts()).
bool is_generated_unit(std::string_view unit)
Whether unit was written by from_boot_unit().
int command(const char *name, int argc, char *argv[])
hermes --prelogin status|enable|disable.
report_t assess(const facts_t &facts)
Decide every check from facts.
void log_report()
Say at startup what stands between this host and being reachable before login. Silent unless Hermes i...
facts_t collect_facts()
Look at this machine.
bool unit_waits_for_session(std::string_view unit)
Whether unit depends on a target that only exists once somebody has logged in, whoever wrote it.
sddm_settings_t sddm_settings(const std::vector< std::string > &files)
Read SDDM's settings from its configuration files.
std::string from_boot_unit(std::string_view packaged_unit, std::string_view source_path)
Turn the packaged unit into one that starts with the user manager.
@ note
Worth saying, and no obstacle.
@ missing
Known to be absent; fix says what to do.
std::string id
Stable name for the Web UI: "unit", "linger", "greeter", ...
std::string fix
Empty unless something is to be done.
std::string unit_name
"hermes.service"; empty when no packaged unit was found.
std::string display_manager
"sddm", "gdm", ...; empty when none is enabled.
std::optional< bool > hermes_kms_without_session
A Hermes-KMS node opens with no seat grant.
bool unit_from_boot
A unit in the user's own directory that does not wait for the session.
bool unit_generated
...and it is the copy --prelogin enable writes.
std::optional< bool > input_without_session
/dev/uinput opens with no seat grant.
std::optional< sddm_settings_t > sddm
Unset when SDDM's configuration could not be read.
bool unit_enabled
The unit is wanted by default.target.
bool enabled
Hermes' unit is set to start at boot.
bool ready
Every requirement is known to be in place.
std::string display_server
[General] DisplayServer, lower-case; empty when unset.
std::string autologin_user
[Autologin] User; SDDM logs in by itself whenever it is set.