g_get_home_dir doesn’t match updated $HOME environment variable
version: 2.64.4
We have the use case with the ubuntu ubiquity installer, which raises and drop priviledges at different point of its lifecycle.
When doing this, it’s updating its $HOME directory to match the user one. We would like GtkFileChooserDialog to show in places the correct current home folder matching $HOME.
However, g_get_home_dir() has a g_home_dir local cache in gsutils.c
which can’t be reset (outside of an helper function only for tests).