g_get_user_data_dir() folder does not exist on macOS compare to gtkfilechoosersettings.c which creates g_get_user_config_dir().
This is intended mainly for GNU/Linux distros who will remove GTK2 support in the near future.