GNOME Bugzilla – Bug 613297
Please don't create ~/.nautilus automaticly if this dir is not exist
Last modified: 2010-03-19 13:38:49 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);"
Created attachment 156531 [details] [review] get rid of ~/.nautilus dir
Created attachment 156536 [details] [review] nautilus without ~/.nautilus
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()
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 ***
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