Page 1 of 1

The mysterious case of the missing tools.prefs

Posted: Thu Nov 04, 2010 12:19 pm
by blueznl
I always thought the editor prefs were stored in the file tools.prefs.

I just installed a brand new PureBasic on this netbook (in a hotel in Casablanca, just don't ask :-)) and I found out... or perhaps better put: I did NOT find a tools.prefs file.

Was there a change in the way the editor is configured, ie. where or how it stores its configuration?

Re: The mysterious case of the missing tools.prefs

Posted: Thu Nov 04, 2010 12:43 pm
by freak
These are the files:
PureBasic.prefs - IDE configuration
Templates.prefs - Content of the templates tool
Tools.prefs - Configuration of the 'Tools' menu

PureBasic.prefs and Templates.prefs are created as soon as the IDE is closed for the first time (or when the preferences are changed).
Tools.prefs is created when you access Tools->Configure Tools for the first time. If you don't do that then it won't be created.

These files are stored in "<appdata folder>\PureBasic\" on Windows and "<home folder>/.purebasic/" on other OS. These locations can be changed with commandline switches (see help for the options)

Re: The mysterious case of the missing tools.prefs

Posted: Thu Nov 04, 2010 1:39 pm
by blueznl
Frankly, I am totally at a loss. The .prefs files seem to be nowhere to be found! Yet any changes are indeed stored and reused by PureBasic. Very weird this.

Re: The mysterious case of the missing tools.prefs

Posted: Thu Nov 04, 2010 2:12 pm
by Trond
Try with filemon, it should tell you what you need to know.

Re: The mysterious case of the missing tools.prefs

Posted: Sat Nov 06, 2010 12:40 am
by Mistrel
It should default to %APPDATA% for the current user. But you can try checking under all users as well; it shouldn't be there though.

Re: The mysterious case of the missing tools.prefs

Posted: Wed Nov 10, 2010 10:15 am
by blueznl
I found the culprit, and it may have been.. TotalCommander! And me, obviously :-)

There's an option in total commander that says 'hide system files'. If it's enabled, AND you start PureBasic from within TotalCommander, PureBasic itself still could find the application data folder, but any of my own programs could not. At least, that's what I think it was, as it's working now and I'm not planning to try again :)