* Switching to a user without a password bypasses the greeter
* Use LD_PRELOAD to intercept system calls for testing
* Removed the --passwd-file option as not required for testing anymore
+ * Rename test-xserver to X and remove --xserver-command option
Overview of changes in lightdm 1.0.0
gboolean explicit_config = FALSE;
gboolean test_mode = FALSE;
gchar *pid_path = "/var/run/lightdm.pid";
- gchar *xserver_command = NULL;
gchar *xsessions_dir = NULL;
gchar *xgreeters_dir = NULL;
gchar *greeter_session = NULL;
{ "pid-file", 0, 0, G_OPTION_ARG_STRING, &pid_path,
/* Help string for command line --pid-file flag */
N_("File to write PID into"), "FILE" },
- { "xserver-command", 0, 0, G_OPTION_ARG_STRING, &xserver_command,
- /* Help string for command line --xserver-command flag */
- N_("Command to run X servers"), "COMMAND" },
{ "greeter-session", 0, 0, G_OPTION_ARG_STRING, &greeter_session,
/* Help string for command line --greeter-session flag */
N_("Greeter session"), "SESSION" },
if (xgreeters_dir)
config_set_string (config_get_instance (), "LightDM", "xgreeters-directory", xgreeters_dir);
g_free (xgreeters_dir);
- if (xserver_command)
- config_set_string (config_get_instance (), "SeatDefaults", "xserver-command", xserver_command);
- g_free (xserver_command);
if (greeter_session)
config_set_string (config_get_instance (), "SeatDefaults", "greeter-session", greeter_session);
g_free (greeter_session);
-noinst_PROGRAMS = test-runner test-xserver test-gobject-greeter test-guest-account test-session test-script-hook initctl plymouth
+noinst_PROGRAMS = test-runner X test-gobject-greeter test-guest-account test-session test-script-hook initctl plymouth
lib_LTLIBRARIES = libsystem.la
libsystem_la_SOURCES = libsystem.c
$(GLIB_LIBS) \
$(GIO_LIBS)
-test_xserver_SOURCES = test-xserver.c status.c status.h
-test_xserver_CFLAGS = \
+X_SOURCES = X.c status.c status.h
+X_CFLAGS = \
$(WARN_CFLAGS) \
$(GOBJECT_CFLAGS) \
$(GLIB_CFLAGS) \
$(GIO_CFLAGS) \
$(GIO_UNIX_CFLAGS)
-test_xserver_LDADD = \
+X_LDADD = \
$(GOBJECT_LIBS) \
$(GLIB_LIBS) \
$(GIO_LIBS) \
xserver_args = g_hash_table_lookup (params, "ARGS");
if (!xserver_args)
xserver_args = "";
- command_line = g_strdup_printf ("%s/tests/src/test-xserver %s", BUILDDIR, xserver_args);
+ command_line = g_strdup_printf ("%s/tests/src/X %s", BUILDDIR, xserver_args);
g_debug ("Run %s", command_line);
if (!g_shell_parse_argv (command_line, NULL, &argv, &error) ||
g_string_append (command_line, " --debug");
if (config_path)
g_string_append_printf (command_line, " --config %s", config_path);
- g_string_append(command_line, " --xserver-command=test-xserver");
if (greeter)
g_string_append_printf (command_line, " --greeter-session=%s", greeter);
g_string_append (command_line, " --session-wrapper=");