Date: Sun, 07 Sep 2014 12:50:10 +0000 From: bugzilla-noreply@freebsd.org To: mono@FreeBSD.org Subject: [Bug 193426] lang/mono: allow overriding Environment.SpecialFolder.Personal e.g., HOME=${WRKDIR} Message-ID: <bug-193426-23699-yDDsECeCtl@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-193426-23699@https.bugs.freebsd.org/bugzilla/> References: <bug-193426-23699@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193426 --- Comment #1 from Jan Beich <jbeich@vfemail.net> --- devel/glib20 provides some background: /** * g_get_home_dir: * * Gets the current user's home directory. * * As with most UNIX tools, this function will return the value of the * <envar>HOME</envar> environment variable if it is set to an existing * absolute path name, falling back to the <filename>passwd</filename> * file in the case that it is unset. * * If the path given in <envar>HOME</envar> is non-absolute, does not * exist, or is not a directory, the result is undefined. * * <note><para> * Before version 2.36 this function would ignore the * <envar>HOME</envar> environment variable, taking the value from the * <filename>passwd</filename> database instead. This was changed to * increase the compatibility of GLib with other programs (and the XDG * basedir specification) and to increase testability of programs * based on GLib (by making it easier to run them from test * frameworks). * </para><para> * If your program has a strong requirement for either the new or the * old behaviour (and if you don't wish to increase your GLib * dependency to ensure that the new behaviour is in effect) then you * should either directly check the <envar>HOME</envar> environment * variable yourself or unset it before calling any functions in GLib. * </para></note> * * Returns: the current user's home directory */ -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-193426-23699-yDDsECeCtl>