[Fwd: Re: bazaar.conf - decisions]

John A Meinel john at arbash-meinel.com
Tue Oct 11 14:00:35 BST 2005


David Allouche wrote:
> On Mon, 2005-10-10 at 23:14 -0400, Kevin Smith wrote:
>
>>John A Meinel wrote:
>>
>>>>Robert Collins wrote:
>>>>
>>>>
>>>>Since this isn't an absolute path, what is it relative to? Your home
>>>>directory? On windows, you don't really have the same concept (I know I
>>>>usually work in H:/dev/...
>>>>Though my $HOME would be C:/Documents and Settings/jameinel/
>>
>>Under MS Windows, Java maps the user home directory to the user's "My
>>Documents" directory, which tends to work pretty well.
>>
>>One way or another, it would be nice on both systems to allow absolute
>>paths, or paths relative to the "home" directory.
>
>
> I have played a bit with Wine this week-end, and it appears that the
> home directory is defined on win32 by a registry key.
>
> Something like "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\
> \User Shell Folders\\Personal".

I do believe that the registry key is actually a "compatibility bug".
There is a function for getting the home directory, or the my documents
directory, some sort of SHGetFolderPath. See here:
http://support.microsoft.com/default.aspx?scid=kb;en-us;310294

That is the "correct" way to do it.

John
=:->


>
> I'm a win32 illiterate, so you should definitely wait for confirmation
> from somebody who knows what he's talking about, but I thought a heads
> up would be useful.
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051011/46174a96/attachment.pgp 


More information about the bazaar mailing list