I&#x27;ve never encountered a system where xdg-open did something I didn&#x27;t expect. It&#x27;s basically the linux variant of windows&#x27; double-click and OSX&#x27;s open. If I did it on a text file and it would open it in Firefox I would think &quot;Jeez what idiot chose Firefox for text files&quot; not &quot;Jeez xdg-open is useless&quot;.