View Single Post
Old 01-04-2010, 05:19 PM   #28
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 Gertjan View Post
DR1000's System Daemon emits the sysPrepareUnmount signal just before exporting the GConf registry to dr1000.ini, so there is only a very small window to save something. I'm not sure that storing the data to the registry is the best option anyway. GConf is, as its man page says, "a system for storing application preferences. It is intended for user preferences; not configuration of something like Apache, or arbitrary data storage.not intended to be used as a generic data storage."

That does not mean it can't be used for this, but why not save it in a plain text file or separate ini file on the SD card? It would at least work around the issue.
Hi Gertjan, I am 'new' to linux programming, so I just copied some behaviour of existing DR-apps, thanks for pointing this out to me. I found a new way around the problem, but will keep this in the back of my mind. Are there some helper functions to handle ini-files (I will probably find them if I search long enough, but I am hoping you knowledge can help me quicker :-) ?
Mackx is offline   Reply With Quote