Actually, right off the bat.. g_strconcat() allocates heap memory and returns a pointer to the string. Probably necessary to do something like homedir = gstrconcat(g_get_home_dir(), G_DIR_SEPARATOR, NULL) and then free(homedir) when done. Also missing NULL termination in the second __SNIP__ and should have been g_get_home_dir() instead of g_get_home_dir.
Actually, right off the bat.. g_strconcat() allocates heap memory and returns a pointer to the string. Probably necessary to do something like homedir = gstrconcat( g_get_home_ dir(), G_DIR_SEPARATOR, NULL) and then free(homedir) when done. Also missing NULL termination in the second __SNIP__ and should have been g_get_home_dir() instead of g_get_home_dir.
-P