Fixed a version check so it doesn't fail

Fixed a version check so it doesn't fail
Check gnome version for xdg.

Check gnome version for xdg.