bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnubg] .gnubgautorc under windows


From: Joern Thyssen
Subject: Re: [Bug-gnubg] .gnubgautorc under windows
Date: Mon, 13 Oct 2003 20:04:53 +0000
User-agent: Mutt/1.4.1i

On Mon, Oct 13, 2003 at 07:30:32PM +0200, Holger wrote
> >
> >Fair enough. On win95/98 there shouldn't be any problems with write
> >access to %USERPROFILE%.
> 
> If it exists, no. If the directory doesn't exist, you'll get an error on 
> open().

Good point :-) gnubg should also check for existence, and create the
directory if possible.

> >I suggest the following:
> >
> >gnubg read and writes .gnubgautorc, .gnubg/* to/from
> >
> >(a) HOME on posix systems
> >(b) USERPROFILE on later windows versions
> >    (BTW, should it be %USERPROFILE%/gnubg instead?)
> 
> If you getenv() the variable then without the percent signs. If any command 
> does env. variable expanding then  it has to be used in the path with 
> percent signs.
> 
> >(c) current directory otherwise
> 
> What about the datadirectory?

szDataDirectory is currently initialised to "." for windows, so item (c)
above is the current default.

> 
> >The interesting part is "migration" of existing user's profiles. I
> >simply suggest that gnubg copies .gnubgautorc from the data directory to
> >%USERPROFILE% if non-existing in %USERPROFILE%.
> 
> But only if this directory already exists (except for the "\gnubg" part). I 
> wouldn't like gnubg to create folders outside of its install directory on 
> my system.

What do you propose then?  I think it's a severe requirement that the
user must be logged on as super user!

Jørn

Attachment: pgpVQqdK5RxsO.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]