Linux Archive

Linux Archive (
-   Debian Development (
-   -   Bug#688932: g_get_home_dir () should prefer ${HOME} over getpwuid ()->pw_dir (

Ivan Shmakov 09-27-2012 05:59 AM

Bug#688932: g_get_home_dir () should prefer ${HOME} over getpwuid ()->pw_dir
Package: libglib2.0-0
Version: 2.32.3-1

[Filing bug, as was suggested in the debian-devel@ discussion
[1]. I've also started a discussion in gtk-devel-list@ [2].]

Currently, it's not possible for the user to specify an
arbitrary home directory for most of the Glib-based packages
(such as, e. g., Gimp [3].)

I therefore suggest to change g_get_home_dir () to follow the
usual Unix convention of using ${HOME} as the user's home
directory, falling back to getpwuid ()->pw_dir should HOME be
non-existent or empty, or, additionally, should it point to a
directory not owned by the current user, or on which he or she
has no executable permission, unless the current user is ‘root’
(UID 0.)

An expanded rationale is at [4].



FSF associate member #7257

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact

All times are GMT. The time now is 02:51 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.