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 613297 - Please don't create ~/.nautilus automaticly if this dir is not exist
Please don't create ~/.nautilus automaticly if this dir is not exist
Status: RESOLVED DUPLICATE of bug 601476
Product: nautilus
Classification: Core
Component: general
2.29.x
Other All
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-03-19 06:27 UTC by Jason
Modified: 2010-03-19 13:38 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
get rid of ~/.nautilus dir (956 bytes, patch)
2010-03-19 06:28 UTC, Jason
none Details | Review
nautilus without ~/.nautilus (766 bytes, patch)
2010-03-19 06:58 UTC, Jason
none Details | Review

Description Jason 2010-03-19 06:27:10 UTC
see BUG 601476

~/.nautilus is totally optical now, but nautilus still try to create this dir every time. and that will be very annoying.

the problem exist in libnautilus-private/nautilus-file-utilities.c, there  defined a value NAUTILUS_USER_DIRECTORY_NAME, but i did not see anywhere else use this environment value.

to solve this, delete nautilus_get_user_directory() directly works. or just delete "g_mkdir (user_directory, DEFAULT_NAUTILUS_DIRECTORY_MODE);"
Comment 1 Jason 2010-03-19 06:28:06 UTC
Created attachment 156531 [details] [review]
get rid of ~/.nautilus dir
Comment 2 Jason 2010-03-19 06:58:09 UTC
Created attachment 156536 [details] [review]
nautilus without ~/.nautilus
Comment 3 Jason 2010-03-19 07:03:48 UTC
can not delete nautilus_get_user_directory() directly.

it's said ~/.nautilus is not used, but the fact is nautilus_get_user_directory() is still needed in nautilus-customization-data.c, nautilus-file-utilities.c, nautilus-property-browser.c and nautilus-application.c

the easiest way to get rid of ~/.nautilus is change this dir to $XDG_CONFIG_HOME/nautils. see the patch. just need change g_get_home_dir() to g_get_user_config_dir()
Comment 4 Christian Persch 2010-03-19 13:14:39 UTC
Why open a new bug, when the patch does just do what bug 601476 proposes?

*** This bug has been marked as a duplicate of bug 601476 ***
Comment 5 Jason 2010-03-19 13:38:49 UTC
i thought i find a new way to do this, but nautilus still need nautilus_get_user_directory(), so back to the patch posted before.

and the discribetion of the bug is not very correctly in bug 601476