Clarify the relation of g_get_home_dir() and $HOME.

This commit is contained in:
Matthias Clasen 2004-09-09 14:06:20 +00:00
parent 6ec4724399
commit ea01de53fe
8 changed files with 31 additions and 7 deletions

View File

@ -1,3 +1,7 @@
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:

View File

@ -1,3 +1,7 @@
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:

View File

@ -1,3 +1,7 @@
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:

View File

@ -1,3 +1,7 @@
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:

View File

@ -1,3 +1,7 @@
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:

View File

@ -1,3 +1,8 @@
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().

View File

@ -127,6 +127,11 @@ returned.
<para>
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.

View File

@ -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)
{