Draft: Fix issue #40, recognize any filename after a --
This is mainly getting the patch from #40 to work.
Assuming one has a file called -something
, xdg-open -- -something
should open the file as expected instead of complaining about --
not being a valid option.
TODO:
-
find fix for cygstart
or treat similar topcmanfm
-
find docs for macos open
-
find docs for enlightenment_open
-
Adjust $BROWSER
variable cleaning to be able to deal with arguments toxdg-open
.
Forward and backward compatibility:
For this one to make sense we should figure out how to backward compatibility on this one, because a lot of legacy will still call it like xdg-open --something
and continue to do so because the old version doesn't know about the --
.
One solution could be to "just work" (and scream deprecated) when called like xdg-open --something
when --something
is a file and error with "is neither a valid option nor a file" when not.
I'm looking forward to feedback and opinions on this one.