View Single Post
Old 09-12-2009, 03:11 PM   #130
Mackx
Guru
Mackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to behold
 
Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
Quote:
Originally Posted by Mackx View Post
I have build in a mechanism to save the current (unsaved) file when the DR shutsdown (the DR issues a card unmounted event when it shuts down). Can you check if you have a .xournal_sav.xoj file in the Programs/_xournal folder?
(Although that file should have been loaded automatically the next time you started xournal.)

You might also need to look in other locations (folder were document was located?), the code uses: "g_get_current_dir()", I am not sure what that will result into when xournal is started via the ctb. (I better change the code to a fixed location.)
I looked a little better at the code, I have build a mechanism that, on shutdown, writes the file to its original name if that is known, or to a temp file. Maybe if the file is big, there is not enough time to write to flash before the firmware shutsdown. I will change the behaviour, just to be save. Sorry if this caused you a lot of troubles ...
Mackx is offline   Reply With Quote