In my testing, xdg-open doesn't work in genffcom on Gnome, so if detect Gnome, just running nautilus directly