GNOME Bugzilla – Bug 631408
Crash without $HOME/.local directory
Last modified: 2010-11-07 12:01:02 UTC
gnote-0.7.2 is crash without $HOME/.local direcroty. I add patch to create the direcroty. Thanks
http://developer.momonga-linux.org/viewvc/pkgs/trunk/pkgs/gnote/gnote-0.7.2-dir.patch?view=co
The patch is wrong since it will create the directory with the wrong permissions (XDG spec says 0700; boost::filesystem::create_directory doesn't do that). Just use g_mkdir_with_parents().
OK, I modified patch using g_mkdir() http://developer.momonga-linux.org/viewvc/pkgs/branches/STABLE_7/pkgs/gnote/gnote-0.7.2-dir.patch?revision=48575&view=co Thanks
Created attachment 173853 [details] [review] Proposed fix A cleaner way to do it is to fix the NoteManager::create_directory method itself. That way you do not need to check every time you are going to create a directory.
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.