fix: necessary code changes for nix configurability

This commit is contained in:
2025-07-06 05:13:09 +02:00
parent be6e039a9b
commit 689c962cc9
3 changed files with 9 additions and 4 deletions

View File

@@ -75,7 +75,7 @@ int main(int argc, char* argv[]) {
// Copy
struct config config = DEFAULT_CONFIG;
char* conf_override = getenv("LIDM_CONF");
char* conf_path = conf_override ? conf_override : "/etc/lidm.ini";
char* conf_path = conf_override ? conf_override : LIDM_CONF_PATH;
if (parse_config(&config, conf_path) != 0) {
(void)fputs("error parsing config\n", stderr);
return 1;