Don't rely on xdg-open for opening paths
We have API in the platform to launch the preferred app for a file URI (which includes directories), no need to spawn an external tool.
In fact, when xdg-open
detects a GNOME environment, it will
spawn gio open
which is implemented with the same API.