patches/control-center-01-passwd-in-terminal.diff
author Jon Tibble <meths@btinternet.com>
Sat, 06 Oct 2012 16:11:50 +0100
branchs11express-2010-11
changeset 22109 db10202d5f6d
parent 16254 449afaa2ff3e
permissions -rw-r--r--
Added tag oi_151a_prestable7 for changeset 25dee50cecca

diff -ruN gnome-control-center-2.27.5.orig/capplets/about-me/gnome-about-me.c gnome-control-center-2.27.5/capplets/about-me/gnome-about-me.c
--- gnome-control-center-2.27.5.orig/capplets/about-me/gnome-about-me.c	2009-08-12 15:43:32.631978317 +0100
+++ gnome-control-center-2.27.5/capplets/about-me/gnome-about-me.c	2009-08-12 15:45:30.962135218 +0100
@@ -864,7 +864,25 @@
 	GtkBuilder *dialog;
 
 	dialog = me->dialog;
+#if (defined(sun) && defined(__SVR4))
+    /* Use gnome-terminal embedded passwd due to inability to fork passwd in
+     * the background.
+     */
+    {
+        GError  *error = NULL;
+        gchar   *command = NULL;
+
+        command = g_strdup_printf("gnome-terminal --window --title '%s' --hide-menubar -e /usr/bin/passwd",
+                                _("Change password") );
+
+        if ( command != NULL ) {
+            g_spawn_command_line_async( command, &error);
+            g_free(command);
+        }
+    }
+#else
 	gnome_about_me_password (GTK_WINDOW (WID ("about-me-dialog")));
+#endif
 }
 
 static void