So the simplest way I can think of doing this would be to put a "settings" file in the pd bin directory, which would be read in if any user who doesn't already have Pd preferences set starts Pd up. Then when the user saves new (customized) settings they would take over from the initial settings.
And yes, it would be necessary to have some way to specify paths relative to "pd" rather than to the current patch... maybe any directory named in "path" should be taken as a filename either relative to the running Pd binary or to the current document (as it is now.)
cheers Miller
On Tue, Dec 20, 2005 at 11:44:48PM -0500, Hans-Christoph Steiner wrote:
On Dec 20, 2005, at 7:36 PM, Miller Puckette wrote:
Then the users would have to dump "pd-settings.reg" into their registrys somehow? I wouldn't know how to do that.
You just double-click any .reg file, and it'll prompt you whether you want to add it to the registry. You then press Yes, then OK.
Is this just to make patches able to find libraries relative to the Pd install? I think that could be done much more OS-independently...
This is to distribute with Pd-extended so that newbies don't have to figure out how to load libraries in order to use patches that rely on them. Currently, I maintain a Mac OS X and a Windows file. I think its fine to do it this way, it just uses the existing preferences system. The .pdrc would be a OS-independent way ;).
The env vars that I mentioned would all me to replace "C:\Program Files" with %ProgramFiles% which would work on Windows for any language. For example auf Deutsch, its called "C:\Programme".
.hc
cheers Miller
On Wed, Dec 21, 2005 at 12:10:14AM +0100, Frank Barknecht wrote:
Hallo, Hans-Christoph Steiner hat gesagt: // Hans-Christoph Steiner wrote:
Even better, there are global environment variables for this stuff, on Windows, there is %ProgramFile%, %SystemRoot%, etc. on UNIXish there is $HOME, etc. etc.
We should allow Pd to use those env vars in the preferences, that would make it much easier to write defaults prerefences files that are included in distros (i.e. pd-settings.reg and org.pure-data.pd.plist).
*That* would be immensely useful, also in workshops.
Ciao
Frank Barknecht _ ______footils.org_ __goto10.org__
PD-dev mailing list PD-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
PD-dev mailing list PD-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
Using ReBirth is like trying to play an 808 with a long stick. -David Zicarelli