Preferences location

Mac OSX specific forum
User avatar
michel51
Enthusiast
Enthusiast
Posts: 290
Joined: Mon Nov 21, 2005 10:21 pm
Location: Germany

Preferences location

Post by michel51 »

I found some "Bugs" within the Preferences window.
Please look here:
http://rapidshare.com/files/57291456/PrefBugs.zip.html

And there are a lot of lines that are not translated into german.

another "problem": with each version Purebasic is using the same preference file. So it's very difficult to run different versions on Mac. Is this a Bug or a feature?
michel51

Mac OS X Snow Leopard (10.6.8 ) Intel
PureBasic V 5.21(x64), V 5.22beta
freak
PureBasic Team
PureBasic Team
Posts: 5950
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

> another "problem": with each version Purebasic is using the same preference file. So it's very difficult to run different versions on Mac. Is this a Bug or a feature?

Its the same on all OS now actually. The preferences are stored in a standard location
so all versions use the same one.

There are commandline switches (like -p) to modify this, although i do not know
if you can easily apply commandline switches to apps in the dock on OSX.

Maybe we need a different approach to managing prefs for different PB versions
on one PC. I must say though that i do not know what a good way would be.
(We cannot put the prefs in the PureBasic.app bundle for example as there could
be access rights issues when the .app is placed in the applications folder)
quidquid Latine dictum sit altum videtur
User avatar
michel51
Enthusiast
Enthusiast
Posts: 290
Joined: Mon Nov 21, 2005 10:21 pm
Location: Germany

Post by michel51 »

freak wrote: Maybe we need a different approach to managing prefs for different PB versions
on one PC. I must say though that i do not know what a good way would be.
(We cannot put the prefs in the PureBasic.app bundle for example as there could
be access rights issues when the .app is placed in the applications folder)
What about placing the prefs into the folder where Purebasic.app is placed?
You cannot (should not) run different versions of PB with the same folder without problems.(?) Or you have to place the different versions into different folders.
So you con get the correct path with #PB_Compiler_Home, that gets the path of the PB-app in the used folder, and there has to be placed the prefs too.
So you have the possibility to work with different version and different prefs.
Hope my thinking is correct.
michel51

Mac OS X Snow Leopard (10.6.8 ) Intel
PureBasic V 5.21(x64), V 5.22beta
freak
PureBasic Team
PureBasic Team
Posts: 5950
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Then you cannot place PureBasic in the applications folder for users who do not
have write access there.
quidquid Latine dictum sit altum videtur
User avatar
michel51
Enthusiast
Enthusiast
Posts: 290
Joined: Mon Nov 21, 2005 10:21 pm
Location: Germany

Post by michel51 »

freak wrote:Then you cannot place PureBasic in the applications folder for users who do not
have write access there.
Hmm..., you're right.
But is it possible to run PB WITHOUT write access? (May be it's a crazy question)
michel51

Mac OS X Snow Leopard (10.6.8 ) Intel
PureBasic V 5.21(x64), V 5.22beta
freak
PureBasic Team
PureBasic Team
Posts: 5950
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Everything is written into the /tmp/ folder. There is no writing going on in the PB directory itself.
But if you place the prefs inside, you need write access or it will not work.
quidquid Latine dictum sit altum videtur
User avatar
michel51
Enthusiast
Enthusiast
Posts: 290
Joined: Mon Nov 21, 2005 10:21 pm
Location: Germany

Post by michel51 »

freak wrote:Everything is written into the /tmp/ folder. There is no writing going on in the PB directory itself.
But if you place the prefs inside, you need write access or it will not work.
But I think, EVERY user has his own private folder, where the tmp folder is placed in.
The privat folder is invisible and locked for other users, thats correct. But the OWNER has read & write access.
Or am I wrong? It's really complicated..
michel51

Mac OS X Snow Leopard (10.6.8 ) Intel
PureBasic V 5.21(x64), V 5.22beta
Post Reply