GLib's g_get_user_config_dir function does exactly the same thing and we don't need libxdg-basedir for something else.