monotone-devel
[Top][All Lists]
Advanced

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

Re: [Monotone-devel] [PATCH] Include()/Includedir() lua functions, --rcf


From: Nuno Lucas
Subject: Re: [Monotone-devel] [PATCH] Include()/Includedir() lua functions, --rcfile=directory
Date: Mon, 13 Jun 2005 15:12:10 +0100
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

[13-06-2005 6:37, rghetta escreveu]
On Sun, 2005-06-12 at 23:11 +0200, Richard Levitte - VMS Whacker wrote:

In message <address@hidden> on Sat, 11 Jun 2005 23:05:09 +0200, rghetta 
<address@hidden> said:

birrachiara> Derek Scherger wrote:
birrachiara>  > having read that I was expecting you would have added
birrachiara>  > /etc/monotonerc or something.
birrachiara> An /etc/monotone could also be useful, but I'm not sure
birrachiara> how to handle it on windows.

*cough* the registry?

Unfortunately you can't store a file into it. You must use it as a
pointer to a real file.
In other words, we need the help of the installer to let the user choose
where our config file should go.
On the downside, having the installer doing something special means that
you can't just do a network install and put a new dir into the user
PATH. Perhaps we could just use a subdir of the installation directory, even
if doing that isn't the recommended behaviour (the "recommended
beahviour" changes with every windows version anyway :) )
What do you think ?

The *right way* is using the SHGetFolderPath() function.

The minimum requirements are (from MSDN):

  "Windows 95 with Internet Explorer 5.0, Windows 98 with Internet
   Explorer 5.0, Windows 98 Second Edition (SE), Windows NT 4.0 with
   Internet Explorer 5.0, Windows NT 4.0 with Service Pack 4 (SP4)"

And what you probably want is CSIDL_APPDATA (the application data
folder).

As you can see, every windows version since Win98 SE comes with it,
and every other that upgraded to IE 5.0 (and who didn't has the PC
infested with virus, anyway) also got it for free.

I would say it's old enough, don't you think? ;)


Regards,
~Nuno Lucas




reply via email to

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