-
Philip Withnall authored
It’s not possible for g_build_home_dir() to return NULL. The fallback code here seems to originate from commit 1607e3f1 in 2005 (bug 169348), where it was added with the explanation “Guard against g_home_dir being NULL”. The XDG Base Directory specification doesn’t have anything to say about what to do when $HOME is unset: https://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html It’s all a bit moot, though, becaause since commit 9cbfb560 (bug 773435), g_{get,build}_home_dir() cannot return NULL. So just drop the fallback. See discussion on !505 (comment 386109) . Signed-off-by: Philip Withnall <withnall@endlessm.com>
7a799840