chiark / gitweb /
systemd-sleep: add support for freeze and standby
[elogind.git] / src / core / main.c
index 22cec4ed15d9a3d4fafd7b2f9eecf8368839df77..7fc06bea05480e5b51d6d5fc6f472dc9e763720f 100644 (file)
@@ -668,7 +668,7 @@ static int parse_config_file(void) {
         const char *fn;
         int r;
 
-        fn = arg_running_as == SYSTEMD_SYSTEM ? SYSTEM_CONFIG_FILE : USER_CONFIG_FILE;
+        fn = arg_running_as == SYSTEMD_SYSTEM ? PKGSYSCONFDIR "/system.conf" : PKGSYSCONFDIR "/user.conf";
         f = fopen(fn, "re");
         if (!f) {
                 if (errno == ENOENT)