The mysterious case of the missing tools.prefs

Working on new editor enhancements?
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

The mysterious case of the missing tools.prefs

Post 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?
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
freak
PureBasic Team
PureBasic Team
Posts: 5941
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: The mysterious case of the missing tools.prefs

Post 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)
quidquid Latine dictum sit altum videtur
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: The mysterious case of the missing tools.prefs

Post 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.
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Re: The mysterious case of the missing tools.prefs

Post by Trond »

Try with filemon, it should tell you what you need to know.
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Re: The mysterious case of the missing tools.prefs

Post 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.
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: The mysterious case of the missing tools.prefs

Post 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 :)
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Post Reply