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@winehq.org ReportedBy: hendrik@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
http://bugs.winehq.org/show_bug.cgi?id=12238
Hendrik Boom hendrik@topoi.pooq.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hendrik@topoi.pooq.com
http://bugs.winehq.org/show_bug.cgi?id=12238
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dank@kegel.com
--- Comment #1 from Dan Kegel dank@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?
http://bugs.winehq.org/show_bug.cgi?id=12238
--- Comment #2 from Lei Zhang thestig@google.com 2008-03-26 16:29:41 --- Wine should be looking at $HOME. What is $HOME set to on your machine?
http://bugs.winehq.org/show_bug.cgi?id=12238
--- Comment #3 from Hendrik Boom hendrik@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@lovesong:~$ echo $HOME /farhome/hendrik hendrik@lovesong:~$
-- hendrik
http://bugs.winehq.org/show_bug.cgi?id=12238
--- Comment #4 from James Hawkins truiken@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.
http://bugs.winehq.org/show_bug.cgi?id=12238
--- Comment #5 from Hendrik Boom hendrik@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
http://bugs.winehq.org/show_bug.cgi?id=12238
James Hawkins truiken@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID
--- Comment #6 from James Hawkins truiken@gmail.com 2008-03-26 16:49:32 --- Invalid.
http://bugs.winehq.org/show_bug.cgi?id=12238
James Hawkins truiken@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from James Hawkins truiken@gmail.com 2008-03-26 16:49:48 --- Closing.
http://bugs.winehq.org/show_bug.cgi?id=12238
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |UNCONFIRMED Component|programs |-unknown Resolution|INVALID |
--- Comment #8 from Dan Kegel dank@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.
http://bugs.winehq.org/show_bug.cgi?id=12238
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|hendrik@topoi.pooq.com | Status|UNCONFIRMED |RESOLVED Resolution| |INVALID
--- Comment #9 from Dmitry Timoshkov dmitry@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.
http://bugs.winehq.org/show_bug.cgi?id=12238
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #10 from Dmitry Timoshkov dmitry@codeweavers.com 2008-03-26 23:41:27 --- Closing.
http://bugs.winehq.org/show_bug.cgi?id=12238
--- Comment #11 from Dan Kegel dank@kegel.com 2008-03-27 00:13:26 --- I wondered about that. Wow.