Where does blender save user preferences ?

Hi everyone,

Does anybody know where blender saves the user preferences when you hit “save as default” ?

The OpenAl sound device make the blender game engine crash in some case so I would like to use SDL. The problem is: even if I select SDL in the user preferences and click “save as default”, when I send the whole directory to a friend (blender + myfile.blend), when he opens it, he gets OpenAl activated instead of SDL.

So basically, I need a way to put the “user preferences” savefile inside the zip I want to distribute. Any idea on how to do that ?

Thanks !

The startup.blend file. Its location depends on your operating system. http://wiki.blender.org/index.php/Dev:2.5/Source/Installation/ResourceFilePaths

Thanks Richard.

That’s weird. If you want to have SDL activated, you need to edit startup.blend, set SDL and save. If you do the same with any other .blend, the SDL setting is not saved.
Why user preferences rely only on startup.blend ? What if I want different user prefs for each project ? Is there a place where this kind of thing can be discussed ? (I suppose this is not really a bug)