On Sat, Jan 19, 2002 at 12:38:29AM -0600, Adam Heath wrote:
> Package: twm
> Version: 4.1.0-5
> Severity: minor
> 
> (this is an upstream bug)
> 
> If twm is called without $HOME set, it can't find the users home directory, so
> can't look there for config files.
$HOME is the better source to find out about a user's home dir.
getpwent is only used to initialize it.

See
http://www.kernel.org/doc/man-pages/online/pages/man3/getpwnam.3.html#NOTES

> [23:06:56,385,Twm-Log] can't find user's HOME, looking for config file in 
> current directory.
> 
> I've straced and ltraced twm, and it calls getenv("HOME"), but not getpwent.
> Gimp, in this same situation, does properly find the user's home directory.
> 
> This particular user is not logged in.  Su was used to change to the user, and
> start the process.
The easy workaround is to use

        env HOME=/what/ever/you/want twm

Best regards
Uwe



-- 
To UNSUBSCRIBE, email to debian-x-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110222101931.GA4626@cassiopeia

Reply via email to