"John J. Foerch" <[email protected]> writes: > On Mon, Dec 06, 2010 at 03:11:15PM +0800, zwz wrote: >> 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 Thanks for you reply. Now it is quite clear. "HOME" is much more convenient. But the worst thing as I have imagined happened is that the path separator is handled in Xulrunner. The consequence is that I have to write something like '~/some\\dirs\\of\\a\\file' with both "/" and "\", which is weird. I really hope that Xulrunner can parse "/" as the path separator for both Linux and Windows.
And another similar problem is whether Conkeror will look for shell commands in the environment variable "PATH", when trying to exec some commands (which is not supported on Windows now). Is it also handled in Xulrunner? Best regards, zwz _______________________________________________ Conkeror mailing list [email protected] https://www.mozdev.org/mailman/listinfo/conkeror
