After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 368661 - Home directory should not be labelled as the desktop
Home directory should not be labelled as the desktop
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: Navigation
0.x.x [obsolete]
Other Linux
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-11-01 02:09 UTC by John Millikin
Modified: 2007-02-19 08:53 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
Disable special treatment of the home directory when desktop_is_home_dir is enabled (2.04 KB, patch)
2006-11-01 02:11 UTC, John Millikin
none Details | Review
Updated patch (1.78 KB, patch)
2007-02-16 20:26 UTC, John Millikin
none Details | Review

Description John Millikin 2006-11-01 02:09:56 UTC
If the user has enabled the desktop_is_home_dir option in gconf, Nautilus labels their home directory as "Desktop" in the path bar. This seems to be a design decision, but I feel it to be a poor one. In addition to the unwanted use of the desktop idea, it clashes with GTK+'s file chooser behaviour.
Comment 1 John Millikin 2006-11-01 02:11:11 UTC
Created attachment 75748 [details] [review]
Disable special treatment of the home directory when desktop_is_home_dir is enabled
Comment 2 John Millikin 2007-02-16 20:24:41 UTC
Comment on attachment 75748 [details] [review]
Disable special treatment of the home directory when desktop_is_home_dir is enabled

Index: nautilus/src/nautilus-pathbar.c
===================================================================
--- nautilus/src/nautilus-pathbar.c	(revision 12746)
+++ nautilus/src/nautilus-pathbar.c	(working copy)
@@ -1064,25 +1064,19 @@
 		      		return path_bar->home_icon;
 			}
 
-			if (!desktop_is_home) {
-				icon_name = get_icon_name_for_file_path (path_bar->home_path);
-				if (strcmp (icon_name, DEFAULT_ICON) == 0) {
-			        	path_bar->home_icon = nautilus_icon_factory_get_pixbuf_from_name (DEFAULT_HOME_ICON,
+			icon_name = get_icon_name_for_file_path (path_bar->home_path);
+			if (strcmp (icon_name, DEFAULT_ICON) == 0) {
+				path_bar->home_icon = nautilus_icon_factory_get_pixbuf_from_name (DEFAULT_HOME_ICON,
 											  NULL, NAUTILUS_PATH_BAR_ICON_SIZE,
 											  TRUE, NULL);
-				} else {
-					path_bar->home_icon = nautilus_icon_factory_get_pixbuf_from_name (icon_name,
+			} else {
+				path_bar->home_icon = nautilus_icon_factory_get_pixbuf_from_name (icon_name,
 											  NULL, NAUTILUS_PATH_BAR_ICON_SIZE,
 											  TRUE, NULL);
-				}
-
-				g_free (icon_name);
-			} else {
-				path_bar->home_icon = nautilus_icon_factory_get_pixbuf_from_name (DEFAULT_DESKTOP_ICON,
-											     NULL, NAUTILUS_PATH_BAR_ICON_SIZE,
-											     TRUE, NULL);
 			}
-                       	return path_bar->home_icon;
+
+			g_free (icon_name);
+			return path_bar->home_icon;
 
                 case DESKTOP_BUTTON:
                       	if (path_bar->desktop_icon != NULL) {
@@ -1123,7 +1117,7 @@
 static const char *
 get_dir_name (ButtonData *button_data)
 {
-        if (button_data->type == DESKTOP_BUTTON || (button_data->type == HOME_BUTTON && desktop_is_home)) {
+	if (button_data->type == DESKTOP_BUTTON) {
 		return _("Desktop");
 	} else {
 		return button_data->dir_name;
Comment 3 John Millikin 2007-02-16 20:26:21 UTC
Created attachment 82698 [details] [review]
Updated patch

Well, that edit didn't work. Guess I'll have to upload a new version.

This just updates the patch for compatibility with the newest code.
Comment 4 Alexander Larsson 2007-02-19 08:53:57 UTC
I agree, its still your homedir, its just shown on the desktop. Commited.