Commit ea01de53 authored by Matthias Clasen's avatar Matthias Clasen

Clarify the relation of g_get_home_dir() and $HOME.

parent 6ec47243
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().
......
......@@ -125,7 +125,12 @@ returned.
<!-- ##### 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.
......
......@@ -1165,12 +1165,6 @@ g_get_real_name (void)
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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment