core: execute environment_generators with manager's environment
authorDimitri John Ledkov <xnox@ubuntu.com>
Wed, 12 Sep 2018 18:51:23 +0000 (19:51 +0100)
committerDimitri John Ledkov <xnox@ubuntu.com>
Mon, 24 Sep 2018 12:40:10 +0000 (13:40 +0100)
src/core/manager.c

index f86b924..f3c0485 100644 (file)
@@ -3788,7 +3788,7 @@ static int manager_run_environment_generators(Manager *m) {
         if (!generator_path_any(paths))
                 return 0;
 
-        return execute_directories(paths, DEFAULT_TIMEOUT_USEC, gather_environment, args, NULL, NULL);
+        return execute_directories(paths, DEFAULT_TIMEOUT_USEC, gather_environment, args, NULL, m->environment);
 }
 
 static int manager_run_generators(Manager *m) {