[Bug 43423] New: Wine does not create a PROGRAMDATA environment variable by default

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 43423] New: Wine does not create a PROGRAMDATA environment variable by default

Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=43423

            Bug ID: 43423
           Summary: Wine does not create a PROGRAMDATA environment
                    variable by default
           Product: Wine
           Version: 2.12
          Hardware: x86-64
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: -unknown
          Assignee: [hidden email]
          Reporter: [hidden email]
      Distribution: ---

PROGRAMDATA can be used by programs to store data that should be accessible by
any users on the system. Normally this is C:\ProgramData. Wine by default does
not have this environment variable or folder.

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 43423] Wine does not create a PROGRAMDATA environment variable by default

Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=43423

Fabian Maurer <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #1 from Fabian Maurer <[hidden email]> ---
Do you know of a program that is affected by this?

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 43423] Wine does not create a PROGRAMDATA environment variable by default

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=43423

Austin English <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 43423] Wine does not create a PROGRAMDATA environment variable by default

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=43423

--- Comment #2 from [hidden email] ---
Programs made with the SteelSeries Engine SDK depend on it to find certain
files.

https://github.com/SteelSeries/gamesense-sdk/blob/master/doc/api/sending-game-events.md#server-discovery

SteelSeries Engine currently only works in wine staging but this issue exists
in all versions of wine.

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 43423] Wine does not create a PROGRAMDATA environment variable by default

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=43423

Anastasius Focht <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #3 from Anastasius Focht <[hidden email]> ---
*** Bug 43515 has been marked as a duplicate of this bug. ***

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 43423] Multiple applications and games need 'ProgramData' environment variable set (SteelSeries Engine SDK based games, World of Warships 0.6.9+)

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=43423

Anastasius Focht <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Wine does not create a      |Multiple applications and
                   |PROGRAMDATA environment     |games need 'ProgramData'
                   |variable by default         |environment variable set
                   |                            |(SteelSeries Engine SDK
                   |                            |based games, World of
                   |                            |Warships 0.6.9+)
           Keywords|                            |download
                 CC|                            |[hidden email]
                URL|                            |http://dl-wows-gc.wargaming
                   |                            |.net/eu/files/ilcClx1YzB/Wo
                   |                            |WS_internet_install_eu.exe
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW

--- Comment #4 from Anastasius Focht <[hidden email]> ---
Hello folks,

confirming and refining summary to target/collect affected apps and games here.

'World of Warships' 0.6.9 is also affected, see bug 43515

Regards

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 43423] Multiple applications and games need 'ProgramData' environment variable set (SteelSeries Engine SDK based games, World of Warships 0.6.9+)

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=43423

Andreas Schallenberg <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Andreas.Schallenberg@Eurobi
                   |                            |ld.com

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 43423] Multiple applications and games need 'ProgramData' environment variable set (SteelSeries Engine SDK based games, World of Warships 0.6.9+)

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=43423

Stefan Dösinger <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #5 from Stefan Dösinger <[hidden email]> ---
So I looked into what the correct way might be to set this. From searching the
Windows registry it seems that HKLM/Software/Microsoft/Windows
NT/CurrentVersion/ProfileList, value name ProgramData contains the value that
gets assigned to %ProgramData%. set_additional_environment in
kernel32/process.c already handles other values in this registry key.

Finally
https://msdn.microsoft.com/en-us/library/windows/desktop/dd378457(v=vs.85).aspx
suggest that FOLDERID_ProgramData now points to %ProgramData% instead of
%ALLUSERSPROFILE%\Application Data

What I am not sure about is how the existing values in the above mentioned
registry key are created. I can create the ProgramData value via
loader/wine.inf, but I am not convinced this is the correct way.
shell32/shellpath does not expand environment variables, so changing the
existing "Application Data" string does not do the right thing, and having the
string redundantly doesn't seem to be the correct approach either.

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 43423] Multiple applications and games need 'ProgramData' environment variable set (SteelSeries Engine SDK based games, World of Warships 0.6.9+)

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=43423

--- Comment #6 from [hidden email] ---
Some other Windows behavior: When using NSIS, the APPDATA variable can be the
same as the PROGRAMDATA environment variable when using the SetShellVarContext
command: http://nsis.sourceforge.net/Reference/SetShellVarContext

Not sure exactly how it gets that behavior though.

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 43423] Multiple applications and games need 'ProgramData' environment variable set (SteelSeries Engine SDK based games, World of Warships 0.6.9+)

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=43423

--- Comment #7 from Stefan Dösinger <[hidden email]> ---
This sounds like some NSIS-internal remapping, nothing that goes through the
OS.

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 43423] Multiple applications and games need 'ProgramData' environment variable set (SteelSeries Engine SDK based games, World of Warships 0.6.9+)

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=43423

--- Comment #8 from Vincent Povirk <[hidden email]> ---
I think FOLDERID_ProgramData will need to have its own CSIDL_Type defined to
allow  reading it from the registry or environment.

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 43423] Multiple applications and games need 'ProgramData' environment variable set (SteelSeries Engine SDK based games, World of Warships 0.6.9+)

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=43423

--- Comment #9 from Vincent Povirk <[hidden email]> ---
I'm concerned that we'll break existing prefixes when we change this. How was
the "Documents and Settings" -> "Users" change handled?

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 43423] Multiple applications and games need 'ProgramData' environment variable set (SteelSeries Engine SDK based games, World of Warships 0.6.9+)

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=43423

--- Comment #10 from Stefan Dösinger <[hidden email]> ---
We don't have to change the location of the folder to fix these apps, we only
have to define the environment variable. If it points to the XP location so be
it.

That said, updating the location in the right way is probably a good thing for
putting the data in the place where users expect it.

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 43423] Multiple applications and games need 'ProgramData' environment variable set (SteelSeries Engine SDK based games, World of Warships 0.6.9+)

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=43423

--- Comment #11 from Vincent Povirk <[hidden email]> ---
Turns out the existing values are created by _SHGetProfilesValue, called by
_SHExpandEnvironmentStrings. So, I guess we could do it that way, and default
to the path of FOLDERID_ProgramData.

FOLDERID_ProgramData is already stored in the registry, so we can change the
default for new prefixes, separately.

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Loading...