Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] system/options/home on Windows /Core 2.5.6

From: brian:hawley at: 12-Aug-2003 13:08

Hey all, I already sent this to Feedback, but maybe some of you can figure this out: <feedback> Depending on the answer, this could be a documentation question or a bug fix request. What is the actual search process for %rebol.r and %user.r, what is the default setting for system/options/home and how do you change it (REBOL_HOME doesn't work)? Your Changes doc says the order of search is current dir first, then system/options/home. Your Setup doc says current then the dir of the executable. If both are true then this implies that system/options/home is by default the dir of the executable (this would be great) but my tests show it to be set to the current directory instead. If possible, please fix REBOL to match the docs (make system/options/home by default the dir of the executable) as that behavior is much better than its current behavior. It would be preferable to perform the search separately for each file so as to be able to put %rebol.r and %user.r in different dirs for both global and local settings. </feedback> Now the problem of changing the default for system/options/home before %rebol.r and %user.r are run is a difficult one if the REBOL_HOME environment variable is ignored. You can't pass it in a --do parameter because that is now evaluated after those two files are. I don't see much of a workaround other than hard-coding a settings directory in every script and then clicking Yes to a lot of security questions. Am I wrong? This situation arose because I was trying to test whether using a slightly different method of searching for the startup files included searching for each of them separately, an enhancement request I've repeatedly made in various forms for a few years now. This feature would make multi-user use of REBOL much easier, allowing global configuration to be in a central location while having local configuration in a user-specific directory (user profile, home directory, etc). As this affects security on multi-user systems, I think that this is a big deal. What do you all think? Brian Hawley