Explanation of xdg-open

xdg-open is a command-line utility used to launch graphical applications or open files and URLs in the default application associated with them, based on the XDG Open Specification. This tool follows a standardized method for opening files and URLs across various desktop environments like GNOME, KDE, XFCE, etc., by using the user's preferred application.

```sh xdg-open /path/to/yourfile.txt ```

```sh xdg-open http://example.com ```

```sh xdg-open -u 'youtube://v/video_id' mpv ```