summaryrefslogtreecommitdiff
path: root/src/seat.c
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2011-09-29 14:40:35 +1000
committerRobert Ancell <robert.ancell@canonical.com>2011-09-29 14:40:35 +1000
commit51d0875e3f79651b8f6b749a403b2b75dad5961d (patch)
tree4331c7d0a063db8fe43c325dd9c02b7d6ee01560 /src/seat.c
parenta676961629ef46200f528c44f4b77e9c6e1f58d4 (diff)
downloadlightdm-51d0875e3f79651b8f6b749a403b2b75dad5961d.tar.gz
Use LD_PRELOAD to intercept system calls for testing
Removed the --passwd-file option as not required for testing anymore
Diffstat (limited to 'src/seat.c')
-rw-r--r--src/seat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/seat.c b/src/seat.c
index b4722e27..1bd9d2a4 100644
--- a/src/seat.c
+++ b/src/seat.c
@@ -250,6 +250,7 @@ run_script (Seat *seat, Display *display, const gchar *script_name, User *user)
process_set_env (script, "LIGHTDM_TEST_STATUS_SOCKET", g_getenv ("LIGHTDM_TEST_STATUS_SOCKET"));
process_set_env (script, "LIGHTDM_TEST_CONFIG", g_getenv ("LIGHTDM_TEST_CONFIG"));
process_set_env (script, "LIGHTDM_TEST_HOME_DIR", g_getenv ("LIGHTDM_TEST_HOME_DIR"));
+ process_set_env (script, "LD_PRELOAD", g_getenv ("LD_PRELOAD"));
process_set_env (script, "LD_LIBRARY_PATH", g_getenv ("LD_LIBRARY_PATH"));
process_set_env (script, "PATH", g_getenv ("PATH"));
}
@@ -301,7 +302,7 @@ emit_upstart_signal (const gchar *signal)
if (getuid () != 0)
return;
- gchar *cmd = g_strdup_printf ("/sbin/initctl -q emit %s DISPLAY_MANAGER=lightdm", signal);
+ gchar *cmd = g_strdup_printf ("initctl -q emit %s DISPLAY_MANAGER=lightdm", signal);
g_spawn_command_line_async (cmd, NULL); /* OK if it fails, probably not installed */
g_free (cmd);
}