diff -u gnome-system-tools-2.22.0/debian/patches/00list gnome-system-tools-2.22.0/debian/patches/00list --- gnome-system-tools-2.22.0/debian/patches/00list +++ gnome-system-tools-2.22.0/debian/patches/00list @@ -4,6 +4,7 @@ 23_users_update_model 24_lpadmin_group_definition.dpatch 25_sambashare_group_definition.dpatch +26_users_home_dir.dpatch 80_gst-packages-common 81_gst-packages-shares-admin 82_gst-packages-time-admin diff -u gnome-system-tools-2.22.0/debian/changelog gnome-system-tools-2.22.0/debian/changelog --- gnome-system-tools-2.22.0/debian/changelog +++ gnome-system-tools-2.22.0/debian/changelog @@ -1,3 +1,13 @@ +gnome-system-tools (2.22.0-0ubuntu5) hardy; urgency=low + + * If a user already exists then set the home directory text box + to display their home directory, rather than the default for their + profile. This avoids changing the homedir inadvertantly when + a user's homedir isn't the default for their profile, in + particular the root user on Ubuntu. (LP: #198172) + + -- James Westby Mon, 31 Mar 2008 13:10:26 +0100 + gnome-system-tools (2.22.0-0ubuntu4) hardy; urgency=low * debian/gnome-system-tools.manpages, debian/menu, debian/rules: only in patch2: unchanged: --- gnome-system-tools-2.22.0.orig/debian/patches/26_users_home_dir.dpatch +++ gnome-system-tools-2.22.0/debian/patches/26_users_home_dir.dpatch @@ -0,0 +1,32 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 26_users_home_dir.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Set the home directory to that of the user if it doesn't already exist + +@DPATCH@ +diff -urNad gnome-system-tools-2.22.0~/src/users/user-settings.c gnome-system-tools-2.22.0/src/users/user-settings.c +--- gnome-system-tools-2.22.0~/src/users/user-settings.c 2008-03-31 16:32:35.000000000 +0100 ++++ gnome-system-tools-2.22.0/src/users/user-settings.c 2008-03-31 16:32:36.000000000 +0100 +@@ -347,9 +347,6 @@ + widget = gst_dialog_get_widget (tool->main_dialog, "user_settings_shell"); + set_entry_text (GTK_BIN (widget)->child, oobs_user_get_shell (user)); + +- widget = gst_dialog_get_widget (tool->main_dialog, "user_settings_home"); +- set_entry_text (widget, oobs_user_get_home_directory (user)); +- + widget = gst_dialog_get_widget (tool->main_dialog, "user_settings_uid"); + gtk_spin_button_set_value (GTK_SPIN_BUTTON (widget), oobs_user_get_uid (user)); + gtk_widget_set_sensitive (GTK_SPIN_BUTTON (widget), FALSE); +@@ -394,6 +391,11 @@ + if (!login) + table_set_default_profile (GST_USERS_TOOL (tool)); + ++ if (user) { ++ widget = gst_dialog_get_widget (tool->main_dialog, "user_settings_home"); ++ set_entry_text (widget, oobs_user_get_home_directory (user)); ++ } ++ + return dialog; + } +