View Single Post
Old 01-04-2010, 03:11 PM   #27
Gertjan
ex-IRX developer
Gertjan doesn't litterGertjan doesn't litterGertjan doesn't litter
 
Gertjan's Avatar
 
Posts: 158
Karma: 224
Join Date: Oct 2008
Device: Irex DR800S, DR1000S, iLiad
Cool feature, Mackx!

Quote:
Originally Posted by Mackx View Post
I currently have problems with the auto-shutdown mechanism. I can detect it (using sysPrepareUnmount), but I seem to be too late to store the open file(s) in gconf and get them saved to dr1000.ini (standard mechanism of DR firmware) ... but searching for a solution ...
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.
Gertjan is offline   Reply With Quote