FAILURE xaccResolveFilePath test-resolve-file-path.c:81

Derek Atkins warlord at MIT.EDU
Mon Sep 25 11:29:27 EDT 2006


Quoting David Hampton <hampton-gnucash at rainbolthampton.net>:

> On Mon, 2006-09-25 at 08:12 -0400, Derek Atkins wrote:
>
>> Perhaps we should use something like:
>>
>>   homedir = getenv("HOME")
>>   if (!homedir)
>>     homedir = g_get_home_dir();
>
> Unless that's common usage, I see no point in modifying GnuCash's
> behavior to be inconsistent with other applications that use the
> g_get_home_dir function.

I think the problem is that users expect to be able to override the HOMEDIR
setting by setting the HOME environment variable.  I know that /I/ certainly
use 'env HOME=... app' in order to start an application with a new homedir.
I would certainly expect an application to use HOME before checking
/etc/passwd.

As Christian said, the glib docs even say that this behavior is different
than every other Unixy app behavior.  I have no idea why glib did it
this way, but I think it's just wrong and I think we should revert
to "standard" behavior.

> David

-derek
-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available



More information about the gnucash-devel mailing list