On Mon, Dec 06, 2010 at 03:11:15PM +0800, zwz wrote:
> "John J. Foerch" <[email protected]> writes:
>
> > I think we will probably resolve the problem you're seeing with $HOME.
> > Since $HOME is not an official environment variable in Windows, Conkeror
> > doesn't look for it, but there seems little harm in adding support for
> > it
> > for people who use conkeror in an environment like you do, where it is
> > set.
> >
> > I summarized the situation on our bug tracker:
> > http://bugs.conkeror.org/issue322 If anybody has any rationale why this
> > change should not be made, please speak now. :)
>
> On Windows, if you type "set" in a cmd, you can see a lot of environment
> variables, such as PATH, HOMEPATH. So I do not think it is nonstandard
> insofar as Microsoft is concerned.
>
> Meanwhile, just to make it clear:
> 1. Does Conkeror now check HOMEPATH when get_home_directory?
> 2. What do you mean by support HOME? Can I use "~" afterwards?
>
The exact procedure that Conkeror currently uses to find your home
directory on windows is:
getenv('USERPROFILE') ||
getenv('HOMEDRIVE') + getenv('HOMEPATH')
It's "correct" for the platform, but inconvenient. I think it is a good
idea to also look for "HOME". I will commit the change today.
Yes, "~" notation will work for you. Note that you use "~/" at the
beginning of a filename, but "\\" for any other path separators on
Windows.
> Another very important thing is to support "/" as path separator. In
> fact it is already supported on Windows (in cmd or explorer). But in
> Conkeror, I found I could not use it for user_pref('conkeror.rcfile',
> 'd:/emacs/home/.conkerorrc')
This one is harder to do because it is Mozilla, not Conkeror, that parses
the filename. (Though conkeror handles "~" and "~/".) I would like to
have this feature, but I'm going to put it on the list of things I won't
do before I have a Windows machine to test it on. I added a ticket to
our bug tracker so I won't forget: http://bugs.conkeror.org/issue323
--
John Foerch
_______________________________________________
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror