-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Ari,

Am Sa den  1. Dez 2007 um 21:48 schrieb Ari Pollak:
> The documentation for g_get_home_dir() says the following:
> 
> Note that in contrast to traditional UNIX tools, this function prefers
> passwd entries over the HOME environment variable.

True. And the "traditional UNIX" way is the expected one. Moreover if
you read the man page of gimp the "traditional UNIX" way is the
documented one too!

> One of the reasons for this decision is that applications in many cases
> need special handling to deal with the case where HOME is
> Not owned by the user
> Not writeable
> Not even readable

This is completely bullshit in my opinion. There might be settings (I
know some) where getent of the home directory gives a non existing one
and the $HOME environment (set in the pam state) points to a (local)
usable directory.

There might be more cases where the directory from getent has the
problems above than the one in $HOME.

And this is, by the way, exactly the reason why I am such concerned.

> Since applications are in general not written to deal with these
> situations it was considered better to make g_get_homedir() not pay
> attention to HOME and to return the real home directory for the user.

Well, it do not return the "real home directory" as I mention above.
Note that all other software is using $HOME (even the X authentication
in .Xauthority if not other configured). Only gimp make this problem.
(Well, only in the set of software I use. There might be some more using
the glib. But also many software using glib use the correct home
directory from $HOME (gqview for example))

> Did you take the appropriate precautions for those cases?

No, as you can see in the patch it just implements the recommendation in
the documentation you quote from. There is also no need if you use
modern WM than kde or gnome as it is impossible to login with a non
existing $HOME (By the way, also gnome use the $HOME!!!!)

But it might be very simple to do some additional checks as it is only
used on a few places. As mention before there might be, more over, no
need as you just have other problems if $HOME is not usable. So before
you can start gimp, that have to be solved. This might be completely
other on windows. But as I know debian is not ported to windows right
now.

Regards
   Klaus Ethgen
- -- 
Klaus Ethgen                            http://www.ethgen.de/
pub  2048R/D1A4EDE5 2000-02-26 Klaus Ethgen <[EMAIL PROTECTED]>
Fingerprint: D7 67 71 C4 99 A6 D4 FE  EA 40 30 57 3C 88 26 2B
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iQEVAwUBR1HRqJ+OKpjRpO3lAQJp2AgApDHyzD/gJ3hTBzwKfMyzJg/OEn80rT+n
F0j6k80VsCQdtrWKaCkpqRcI0M/m8ubTmsEiMxlt6w6kiAxlPxZjlKtbFWppDC73
vbJhnb/DMDEkryp6UrGCDb6qQj0C824BYO0UWKxaWpdNER8nZev9iBDgBpFfjfAM
cOWV4jEqMjlyhSRGfa7GMDiF19pY6BWd3bBMq2789/l58NBCU7OAz5lWGTz2pD2x
fNp+GUlcs/gYR0uzRxc7FgmS7E93ZC9R+4XFZA12xStlVlpdfnKrnj1Yg3lQzXK5
msttA47EoCCjXd1flQzG77C0giuDbdJaiujxBl7Y4SOEuwvlXL7DPA==
=esr5
-----END PGP SIGNATURE-----



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to