+2004-09-09 Matthias Clasen <mclasen@redhat.com>
+
+ * glib/gutils.c (g_get_home_dir): Remove a misleading comment.
+
Thu Sep 9 00:10:40 2004 Matthias Clasen <maclas@gmx.de>
* glib/gstrfuncs.h:
+2004-09-09 Matthias Clasen <mclasen@redhat.com>
+
+ * glib/gutils.c (g_get_home_dir): Remove a misleading comment.
+
Thu Sep 9 00:10:40 2004 Matthias Clasen <maclas@gmx.de>
* glib/gstrfuncs.h:
+2004-09-09 Matthias Clasen <mclasen@redhat.com>
+
+ * glib/gutils.c (g_get_home_dir): Remove a misleading comment.
+
Thu Sep 9 00:10:40 2004 Matthias Clasen <maclas@gmx.de>
* glib/gstrfuncs.h:
+2004-09-09 Matthias Clasen <mclasen@redhat.com>
+
+ * glib/gutils.c (g_get_home_dir): Remove a misleading comment.
+
Thu Sep 9 00:10:40 2004 Matthias Clasen <maclas@gmx.de>
* glib/gstrfuncs.h:
+2004-09-09 Matthias Clasen <mclasen@redhat.com>
+
+ * glib/gutils.c (g_get_home_dir): Remove a misleading comment.
+
Thu Sep 9 00:10:40 2004 Matthias Clasen <maclas@gmx.de>
* glib/gstrfuncs.h:
+2004-09-09 Matthias Clasen <mclasen@redhat.com>
+
+ * glib/tmpl/misc_utils.sgml: Add a hint about $HOME to the
+ docs of g_get_home_dir().
+
Thu Sep 9 00:11:19 2004 Matthias Clasen <maclas@gmx.de>
* glib/glib-sections.txt: Add g_strv_length().
<!-- ##### FUNCTION g_get_home_dir ##### -->
<para>
-Gets the current user's home directory.
+Gets the current user's home directory.
+</para>
+<para>
+Note that in contrast to traditional Unix tools, this function
+prefers <filename>passwd</filename> entries over the <envar>HOME<envar>
+environment variable.
</para>
@Returns: the current user's home directory.
return g_real_name;
}
-/* Return the home directory of the user. If there is a HOME
- * environment variable, its value is returned, otherwise use some
- * system-dependent way of finding it out. If no home directory can be
- * deduced, return NULL.
- */
-
G_CONST_RETURN gchar*
g_get_home_dir (void)
{