Hi, Am Sonntag, den 27.10.2013, 16:08 -0600 schrieb Michael Petch: > On 2013-10-27 14:21, Philippe Michel wrote: > > The portable version would then be started from a short script that > > determines where it is run from, sets the environment variable > > accordingly and launches the real executable with -s > > %GNUBGDATA\preferences or something similar. > > The idea of some form of environment variable isn't a bad one. It seems > like it may be a reasonable idea.
Isn't that already possible by simply setting the environment variable HOME? Under Windows, the environment variable USERPROFILE has the same effect but HOME is always checked first, even under Windows. Beginning with glib 2.36 those environment variables are preferred over passwd entries. Under Windows that was also the case for older glib versions. Note, however, that glib for Windows ignores the environment variables if they point to a path that is not absolute. Another small caveat: In order to make that work, you have to manually create the directory that $HOME resp. $USERPROFILE points to. The subdirectory ".gnubg" will be created on the fly. Guido -- Cantanea EOOD ul. Knyaz Boris I No. 86 BG-1000 Sofia _______________________________________________ Bug-gnubg mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-gnubg
