> In a sense, xdg-open does exactly what your script does.
Pretty much, yeah. It's just a simple mapping, right? I don't recall what problems I had exactly, but it was just a pain and stopped working at various points, or just didn't do what I wanted and couldn't get to behave as I wanted. So I spent half an hour six or seven years ago and that fixed it (I added the MIME support last year or so, another 15 minutes).
At some point of knowledge it's easier and less time-consuming to just script these things rather than relying on some generic system. It is for me anyway.
Pretty much, yeah. It's just a simple mapping, right? I don't recall what problems I had exactly, but it was just a pain and stopped working at various points, or just didn't do what I wanted and couldn't get to behave as I wanted. So I spent half an hour six or seven years ago and that fixed it (I added the MIME support last year or so, another 15 minutes).
At some point of knowledge it's easier and less time-consuming to just script these things rather than relying on some generic system. It is for me anyway.