summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--daemon/gdm.c10
-rw-r--r--docs/C/gdm.xml19
3 files changed, 25 insertions, 11 deletions
diff --git a/ChangeLog b/ChangeLog
index 385e5a5f..6b01a316 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-05-24 Brian Cameron <brian.cameron@sun.com>
+
+ * daemon/gdm.c, docs/C/gdm.xml: Put back support for -nodaemon
+ argument, lost in the 5-12 patch by Christian Kirbach. This
+ fixes bug #324831. Patch provided by Ray Strode
+ <rstrode@redhat.com>.
+
2006-05-23 Brian Cameron <brian.cameron@sun.com>
* NEWS: Add 2.14.7 info.
diff --git a/daemon/gdm.c b/daemon/gdm.c
index f0cc0f88..4b15e01e 100644
--- a/daemon/gdm.c
+++ b/daemon/gdm.c
@@ -1378,6 +1378,7 @@ main (int argc, char *argv[])
GOptionContext *ctx;
gchar *pidfile;
const char *charset;
+ int i;
/* semi init pseudorandomness */
gdm_random_tick ();
@@ -1403,6 +1404,15 @@ main (int argc, char *argv[])
ctx = g_option_context_new (_("- The GNOME login manager"));
g_option_context_add_main_entries (ctx, options, _("main options"));
+
+ /* preprocess the arguments to support the xdm style -nodaemon
+ * option
+ */
+ for (i = 0; i < argc; i++) {
+ if (strcmp (argv[i], "-nodaemon") == 0)
+ argv[i] = (char *) "--nodaemon";
+ }
+
g_option_context_parse (ctx, &argc, &argv, NULL);
g_option_context_free (ctx);
diff --git a/docs/C/gdm.xml b/docs/C/gdm.xml
index 43d0c3fc..0350e7a6 100644
--- a/docs/C/gdm.xml
+++ b/docs/C/gdm.xml
@@ -184,15 +184,11 @@
</para>
<para>
- As of the GDM 2.15 development series one-dash arguments are no
- longer supported. This includes the &quot;-nodaemon&quot; argument
- used by <command>gdm</command> and <command>gdm-binary</command>. It
- also includes the &quot;-xdmaddress&quot;, &quot;-clientaddress&quot;,
- and &quot;-connectionType&quot; arguments used by
- <command>gdmchooser</command>. These arguments have been changed to
- now use two dashes. GDM previously supported the one-dash arguments to
- be more similar with the XDM login manager, but one-dash command line
- arguments is deprecated in the GNOME stack.
+ As of the GDM 2.15 development series, some one-dash arguments are no
+ longer supported. This includes the &quot;-xdmaddress&quot;,
+ &quot;-clientaddress&quot;, and &quot;-connectionType&quot; arguments
+ used by <command>gdmchooser</command>. These arguments have been
+ changed to now use two dashes.
</para>
<para>
@@ -5331,8 +5327,9 @@ remote-flexi - In remote (XDMCP) &amp; flexi mode.
<listitem>
<para>
If this option is specified, then GDM does not fork into the
- background when run. Note that you cannot use the single-dash
- option any more that e.g. XDM understands.
+ background when run. You can also use a single-dash version,
+ &quot;-nodaemon&quot; for compatibility with other display
+ managers.
</para>
</listitem>
</varlistentry>