That is not enough. As I found out when working on
pidgin, g_get_home_dir honors /etc/passwd aand not $HOME. You need to change that to g_getenv("HOME").
file changed :
app/widgets/gimpsettingsbox.c:747:
libgimpbase/gimpenv.c:164:
libgimpbase/gimpenv.c:600:
libgimpthumb/gimp-thumbnail-list.c:77:
libgimpthumb/gimpthumb-utils.c:113:
tools/gimptool.c:540:
tools/gimptool.c:659: