Almost every desktop environment has a mechanism for determining what to do when you (double)-click a file in file manager/explorer windows. This can be based on the extension, or on whatever
file does, etc.
Now, suppose I have a terminal window open within a desktop session and I'm at some folder. Is there some binary or script - hopefully valid across multiple desktop environments common to Linux - which, when executed with a filename as its argument, uses this mechanism and has the same effect as (double)-clicking that file would?
If there isn't a single multi-desktop-environment way to do this - are there a bunch of desktop-environment-specific binaries/scripts with this functionality? If so, can you list such a bunch?
On Windows I think this exists in the form of the
start command (although, of course, they can assume a single desktop environment.)