[PATCH] kernel32: Set environment variable %PUBLIC% on the process start-up.

Alexandre Julliard julliard at winehq.org
Thu Aug 16 03:51:18 CDT 2018


Dmitry Timoshkov <dmitry at baikal.ru> writes:

> Alexandre Julliard <julliard at winehq.org> wrote:
>
>> It would be more correct to retrieve it from the "Public" registry key,
>> then the paths can be updated independently of each other.
>
> Thanks for the suggestion, that's actually matches what Windows have
> in the registry. I sent another patch that uses this approach.
>
> However, setting "Public" in the ProfileList registry key seems problematic.
> Currently ProfileList is populated with keys by shell32 for known folder ids,
> but unfortunately there is no an official folder id for C:\Users\Public. How
> would you suggest that should be handled?

There's no CSIDL constant, but there's FOLDERID_Public, which is more or
less supported already. It shouldn't be hard to add the missing pieces.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list