http://bugs.winehq.org/show_bug.cgi?id=13062
Summary: $HOME environment variable is not passed to Wine Product: Wine Version: 0.9.61. Platform: Other OS/Version: other Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: bammzilla@gabriana.com
I don't know if it is intentional, but if I do a SET command in Wine CMD, most environment variables present in bash gets passed on to CMD, but HOME is conspicuously absent.
http://bugs.winehq.org/show_bug.cgi?id=13062
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |WONTFIX
--- Comment #1 from Alexandre Julliard julliard@winehq.org 2008-05-08 06:26:04 --- That's a feature, Windows apps that want HOME want it in DOS format. You can use WINEHOME to set it from a Unix shell.
http://bugs.winehq.org/show_bug.cgi?id=13062
--- Comment #2 from Bamm Gabriana bammzilla@gabriana.com 2008-05-08 07:22:52 --- I don't understand how removing it is a feature.
Other Linux environment variables are there anyway whose values are in Unix format. What harm will the presence of %HOME% do?
If a Windows program is run normally as "wine exename.exe", what is the best way for exename to know $HOME (whether in Unix or DOS format)?
http://bugs.winehq.org/show_bug.cgi?id=13062
--- Comment #3 from Bamm Gabriana bammzilla@gabriana.com 2008-05-08 08:09:53 --- Ok, I've tested the WINEHOME variable and it works great. I can see that it will be very useful.
So let me modify my request a little:
In my system I have D: mapped to my HOME directory which is /home/bamm. In case the program is not started with the WINEHOME option, then Wine should still provide a value for HOME, either in the Unix path /home/bamm or the corresponding DOS path D:, instead of leaving it out.
If a user provided a WINEHOME value, then use it for HOME; otherwise default to the known value.
http://bugs.winehq.org/show_bug.cgi?id=13062
--- Comment #4 from Alexandre Julliard julliard@winehq.org 2008-05-08 10:00:18 --- There's no reason to provide HOME by default, it isn't set on Windows. If you want it to be always set you can add it to the HKCU/Environment section in the registry.
http://bugs.winehq.org/show_bug.cgi?id=13062
--- Comment #5 from Bamm Gabriana bammzilla@gabriana.com 2008-05-08 19:00:54 --- Thanks, I understand.
BTW, is $HOME always the same as /home/$LOGNAME, or are there strange situations where they aren't? I know this is off topic, but it may help with what I'm trying to solve.
http://bugs.winehq.org/show_bug.cgi?id=13062
Lei Zhang thestig@google.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Lei Zhang thestig@google.com 2008-05-08 19:59:47 --- No, $HOME can be different. i.e. root's $HOME is /root. If you have more questions about $HOME, please contact your favorite Linux forum / support group.
Closing.