[Bug 12238] New: wine chooses wrong home directory
http://bugs.winehq.org/show_bug.cgi?id=12238 Summary: wine chooses wrong home directory Product: Wine Version: unspecified Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: programs AssignedTo: wine-bugs(a)winehq.org ReportedBy: hendrik(a)topoi.pooq.com Wine failed to find c:\Windows According to spec, it should have looked for ~hendrik/.wine/fake_windows/Windows. I suspect it actually looked in /home/hendrik/.wine/fake_windows/Windows. My home directory is /farhome/hendrik, not /home/hendrik. After I inserted a symbolic link ln -s /home/hendrik /farhome/hendrik wine stopped complaining about not finding c:\Windows. I suspect that Wine assumes home directories are in /home instead of looking in the appropriate configuration file, such as /etc/passwd. (There ought to be a system call you can use to find this information instead of grotting around in /etc/passwd. Is there?) -- hendrik -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=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.
http://bugs.winehq.org/show_bug.cgi?id=12238 Hendrik Boom <hendrik(a)topoi.pooq.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hendrik(a)topoi.pooq.com -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=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.
http://bugs.winehq.org/show_bug.cgi?id=12238 Dan Kegel <dank(a)kegel.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dank(a)kegel.com --- Comment #1 from Dan Kegel <dank(a)kegel.com> 2008-03-26 16:27:26 --- Perhaps Wine is simply recording the home directory somewhere it shouldn't be. Did it change recently? If you remove that symlink, blow away ~/.wine, and reinstall your apps (if any), does wine get your home dir right? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=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.
http://bugs.winehq.org/show_bug.cgi?id=12238 --- Comment #2 from Lei Zhang <thestig(a)google.com> 2008-03-26 16:29:41 --- Wine should be looking at $HOME. What is $HOME set to on your machine? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=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.
http://bugs.winehq.org/show_bug.cgi?id=12238 --- Comment #3 from Hendrik Boom <hendrik(a)topoi.pooq.com> 2008-03-26 16:34:54 --- (In reply to comment #2)
Wine should be looking at $HOME. What is $HOME set to on your machine?
hendrik(a)lovesong:~$ echo $HOME /farhome/hendrik hendrik(a)lovesong:~$ -- hendrik -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=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.
http://bugs.winehq.org/show_bug.cgi?id=12238 --- Comment #4 from James Hawkins <truiken(a)gmail.com> 2008-03-26 16:35:12 --- check out wine/libs/wine/config.c:174 we first check the HOME env var, and if it doesn't exist, we call getpwuid and get the home dir from that structure (like you were guessing). For that to work, HAVE_GETPWUID has to be defined when wine is built. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=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.
http://bugs.winehq.org/show_bug.cgi?id=12238 --- Comment #5 from Hendrik Boom <hendrik(a)topoi.pooq.com> 2008-03-26 16:44:37 --- (In reply to comment #1)
Perhaps Wine is simply recording the home directory somewhere it shouldn't be.
Did it change recently?
If you remove that symlink, blow away ~/.wine, and reinstall your apps (if any), does wine get your home dir right?
When I do this, it no longer complains. -- hendrik -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=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.
http://bugs.winehq.org/show_bug.cgi?id=12238 James Hawkins <truiken(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID --- Comment #6 from James Hawkins <truiken(a)gmail.com> 2008-03-26 16:49:32 --- Invalid. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=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.
http://bugs.winehq.org/show_bug.cgi?id=12238 James Hawkins <truiken(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #7 from James Hawkins <truiken(a)gmail.com> 2008-03-26 16:49:48 --- Closing. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=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.
http://bugs.winehq.org/show_bug.cgi?id=12238 Dan Kegel <dank(a)kegel.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |UNCONFIRMED Component|programs |-unknown Resolution|INVALID | --- Comment #8 from Dan Kegel <dank(a)kegel.com> 2008-03-26 17:07:32 --- Hang on, maybe it's not invalid. Shouldn't Wine continue working if the user's home directory is relocated? It would be a nice feature, and it's not unreasonable to expect. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=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.
http://bugs.winehq.org/show_bug.cgi?id=12238 Dmitry Timoshkov <dmitry(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC|hendrik(a)topoi.pooq.com | Status|UNCONFIRMED |RESOLVED Resolution| |INVALID --- Comment #9 from Dmitry Timoshkov <dmitry(a)codeweavers.com> 2008-03-26 23:41:11 --- Looks like Wine is not relocated but from another era: fake_windows That's really makes it invalid. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=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.
http://bugs.winehq.org/show_bug.cgi?id=12238 Dmitry Timoshkov <dmitry(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #10 from Dmitry Timoshkov <dmitry(a)codeweavers.com> 2008-03-26 23:41:27 --- Closing. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=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.
http://bugs.winehq.org/show_bug.cgi?id=12238 --- Comment #11 from Dan Kegel <dank(a)kegel.com> 2008-03-27 00:13:26 --- I wondered about that. Wow. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=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.
participants (1)
-
wine-bugs@winehq.org