Package: glib
Function g-home-dir
Lambda Listg-home-dir () Return ValueA string with the current user's home directory. Details Gets the current user's home directory. As with most UNIX tools, this function will return the value of the HOME environment variable if it is set to an existing absolute path name, falling back to the passwd file in the case that it is unset. If the path given in HOME is non-absolute, does not exist, or is not a directory, the result is undefined. NoteIf your program has a strong requirement for either the new or the old behaviour and if you do not wish to increase your GLib dependency to ensure that the new behaviour is in effect then you should either directly check the HOME environment variable yourself or unset it before calling any functions in GLib. | See also |
2020-10-24