Package: gnome-system-tools
Version: 2.22.0-1
Severity: minor
Tags: patch
User: [EMAIL PROTECTED]
Usertags: origin-ubuntu intrepid ubuntu-patch
Forwarded: http://bugzilla.gnome.org/show_bug.cgi?id=523180
Hi,
If the administrator has set up profiles (we do by default in Ubuntu)
then if a users home directory differs from that which their profile
would suggest (e.g. root on Ubuntu), then changing anything about
that user will change their home directory.
Please see
http://bugzilla.gnome.org/show_bug.cgi?id=523180
and
https://bugs.launchpad.net/bugs/198172
for more information.
The attached patch fixes this by using the user's home directory if
they already exist.
Thanks,
James
Index: ubuntu/src/users/user-settings.c
===================================================================
--- ubuntu.orig/src/users/user-settings.c 2008-06-24 17:04:49.000000000 +0100
+++ ubuntu/src/users/user-settings.c 2008-06-24 17:04:49.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;
}