TIL that xdg-open is a shell script with with a hard-coded set of desktop enviro...
Wesley Moore @wezm@mastodon.decentralised.social
TIL that xdg-open is a shell script with with a hard-coded set of desktop environments that it tries to detect and then dispatch to a specific command with a waterfall of fallbacks. E.g. if GNOME is detected then it tries: `gio help open`, then uses `gio open` if that succeeds, if not then `gvfs-open --help` and `gvfs-open` if that succeeds then `gnome-open`, finally a generic fallback.
I'm not sure I like this, but I guess that's the mess that is open-source desktop environments.