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 47511 - Nautilus sometimes uses wrong home directory after going through druid
Nautilus sometimes uses wrong home directory after going through druid
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: general
0.x.x [obsolete]
Other Linux
: Normal normal
: ---
Assigned To: John Harper
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2001-03-07 19:20 UTC by Brett Neely
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to set the user level before getting the home URI (1.21 KB, patch)
2001-09-10 01:10 UTC, John Harper
none Details | Review

Description Brett Neely 2001-09-10 01:10:45 UTC
John Sullivan and I have seen situations where Nautilus launches with the wrong
home directory based on the selected userlevel in the druid.  For example, when
choosing beginner level, the home directory shown on launch following the druid
would be "/home/tester" (and should be "/home/tester/Nautilus"), and
intermediate/advanced levels are sometimes getting "/home/tester/Nautilus" (and
it should be "/home/tester").

This happens intermittently, and hasn't been narrowed down yet.  John Sullivan
mentioned that the point at which the user level is actually set has recently
changed to be at the end of the druid, so there might be an error as to when the
first-time home directory is set.  John suggested it could be choosing the home
directory based on a previous preference, although I also removed the .gconf,
.gconfd, .nautilus, and Nautilus directories before reinstalling Nautilus, after
which I was able to see this bug.

To reproduce:

1 - Remove the first-time-wizard flag.
2 - Run nautilus
3 - Proceed through the first time druid, and press "finish"

When the two Nautilus windows open, see if the home directory location is
correct for the user level selected in the druid.  I am seeing this fail about
80% of the time on two hourly RPM test machines.

I can do more testing on this, but would need to know what scenarios should be
tested.  Also, is this a 1.0 bug?  Since this event only happens once per user,
and doesn't have any user experience-crippling effect, I'm guessing this is not
a 1.0-critical bug.



------- Additional Comments From sullivan@eazel.com 2001-03-07 14:30:37 ----

cc:ing John Harper, because my memory tells me that he made the change to set
the user level later on in the first-time druid, and thus might know the details
of that interaction.



------- Additional Comments From jsh@pixelslut.com 2001-03-07 16:02:17 ----

Yes, I made that change. The reason was to avoid a problem where toggling the
user level preference could make the druid page titles non-anti-aliased.

Looking at the code, I can see a possible cause:

	signup_uris[0]=nautilus_preferences_get(NAUTILUS_PREFERENCES_HOME_URI);

	...

	/* Do the user level config */
	nautilus_preferences_set_user_level (current_user_level);
	
Perhaps this ordering needs to be reversed?




------- Additional Comments From sullivan@eazel.com 2001-03-07 16:21:11 ----

Reversing that order looks like the right fix to me.



------- Additional Comments From jsh@pixelslut.com 2001-03-07 17:04:42 ----

Created an attachment (id=1344)
Patch to set the user level before getting the home URI




------- Additional Comments From don@eazel.com 2001-03-07 17:10:49 ----

Approved for 1.0.  John, land it ASAP.




------- Additional Comments From jsh@pixelslut.com 2001-03-07 17:21:37 ----

I've committed the patch on both branches



------- Bug moved to this database by unknown@bugzilla.gnome.org 2001-09-09 21:10 -------
Comment 1 Darin Adler 2001-09-10 18:33:02 UTC
Getting rid of the First-Time Druid component.