[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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

Package: libglib2.0-0
Version: 2.32.3-1
X-Debbugs-Cc: debian-devel@lists.debian.org

	[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].


[1] http://comments.gmane.org/gmane.linux.debian.devel.general/176973
[2] http://comments.gmane.org/gmane.comp.gnome.gtk+.devel.general/22721
[3] http://bugs.debian.org/453711
[4] http://permalink.gmane.org/gmane.comp.gnome.gtk+.devel.general/22721

FSF associate member #7257

Reply to: