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

Alexandre Julliard julliard at winehq.org
Wed Aug 15 01:51:15 CDT 2018

Dmitry Timoshkov <dmitry at baikal.ru> writes:

> Alistair Leslie-Hughes <leslie_alistair at hotmail.com> wrote:
>> > This patch fixes an installer that has "[%PUBLIC]\Documents" entry
>> > for some of the targets being copied from a cabinet file. Under
>> > Windows %PUBLIC% environment variable is set to C:\Users\Public.
>> On windows, these are set to different values.
>> PUBLIC=C:\Users\Public
>> Why have you made them the same?
> Yes, I'm aware of that difference. However since Wine already has the code
> path to set ALLUSERSPROFILE=C:\Users\Public I decided to reuse it path to
> set PUBLIC=C:\Users\Public. Changing ALLUSERSPROFILE to point to another
> place is not the subject of my patch.

It would be more correct to retrieve it from the "Public" registry key,
then the paths can be updated independently of each other.

Alexandre Julliard
julliard at winehq.org

More information about the wine-devel mailing list