on LXDE xdg-open opens any URL with pcmanfm. The bug was introducted here: 9cb017ae0eaa80c595445e083b2ea7c58569bf12 The fix is here: https://github.com/freedesktop/xdg-utils/pull/4/commits/c2840c44677cde9a88a89628be7bf1570ad04d04
I cannot reproduce the problem, can you be more specific how it doesn't work? I test this snippet under both bash and dash, and it works as expected, if pcmanfm --help >/dev/null 2>&1 -a /bin/true; then echo yes; fi *** This bug has been marked as a duplicate of bug 106161 ***
The problem is when fake_command is exists but second options is _false_. That's the case. [kreon@xaron ~]$ if /bin/false ; then echo "false=true"; fi [kreon@xaron ~]$ if pcmanfm --help 2>&1 > /dev/null -a /bin/false ; then echo "false=true"; fi false=true JFYI: -a IS NOT theaten as AND until you use [] or [[]] it's theaten as a ARGUMENT to pcmanfm. And is't not a duplicate, it's completely another bug that causes first condition to be true IF pcmanfm exists.
Thanks, I could have sworn I'd checked that case, but apparently not. I do prefer to track this in the dup'd bug however. *** This bug has been marked as a duplicate of bug 106161 ***
Opted for simplest fix https://cgit.freedesktop.org/xdg/xdg-utils/commit/?id=31525d3855f876ddf2e29091b2e8d376f923e09e
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.