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 631408 - Crash without $HOME/.local directory
Crash without $HOME/.local directory
Status: RESOLVED FIXED
Product: gnote
Classification: Applications
Component: main
0.7.x
Other Linux
: Normal normal
: ---
Assigned To: gnote-maint
gnote-maint
Depends on:
Blocks:
 
 
Reported: 2010-10-05 12:29 UTC by Nishio Futoshi
Modified: 2010-11-07 12:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed fix (964 bytes, patch)
2010-11-04 21:27 UTC, Debarshi Ray
none Details | Review

Description Nishio Futoshi 2010-10-05 12:29:45 UTC
gnote-0.7.2 is crash without $HOME/.local direcroty.
I add patch to create the direcroty.

Thanks
Comment 2 Christian Persch 2010-10-05 14:45:43 UTC
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().
Comment 3 Nishio Futoshi 2010-10-09 00:44:08 UTC
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
Comment 4 Debarshi Ray 2010-11-04 21:27:57 UTC
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.
Comment 5 Debarshi Ray 2010-11-07 12:01:02 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.