On 15.01.2012 15:59, Martin Spott wrote:
> James Turner wrote:
>> On 14 Jan 2012, at 11:42, James Turner wrote:
>>
>>>> While trying to find out about a different issue ('fgfs' not starting
>>>> at all) I noticed, that it still writes an "autosave.xml" into
>>>> ${FG_ROOT} despite the fact that I've explicitly set
>>>> --prop:/sim/startup/save-on-exit=false
>>>> Now I'd like to learn wether someone is deliberately trying piss users
>>>> off or it this is just a bug  ;-)
>>
>> Just tested this and it seems to work for me (setting exactly that
>> argument - there's also explicit options: --disable-save-on-exit and
>> --enable-save-on-exit)
>
> I just found out that I mixed $FG_ROOT and $FG_HOME. The "autosave.xml"
> was written into $FG_HOME, not $FG_ROOT.
>
> I typically set the properties directly via "--prop:/..." and I'm quite
> sure that I picked the correct one because I matched it against
> flightgear/src/Main/globals.cxx - and because I've been using
> "/sim/startup/save-on-exit" successfully for ages to prevent FG from
> creating a $HOME/.fgfs/ directory.
> BUT, with a new build from todays GIT the "autosave.xml" doesn't get
> written any more.  Maybe it's been linked to the recent relative path
> changes.

Speculating: what may have happened is that you had an invalid path in 
your scenery or aircraft directory list, and also had disabled the 
"save-on-exit" property only at the end of the command-line. fgfs first 
reads "preferences.xml", which enables "save-on-exit" by default. Then 
it starts evaluating the command-line parameters one by one. Finding the 
invalid scenery or aircraft path, it was exiting immediately (due to an 
error, which has been fixed already), and never got to evaluate the rest 
of the command-line, so "save-on-exit" remained enabled. May not have 
happened if --disable-save-on-exit first was first in the command-line...

cheers,
Thorsten

------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to