Bug 106636 - xdg-open fais to open urls in lxde
Summary: xdg-open fais to open urls in lxde
Status: RESOLVED DUPLICATE of bug 106161
Alias: None
Product: Portland
Classification: Unclassified
Component: xdg-utils (show other bugs)
Version: unspecified
Hardware: Other Linux (All)
: medium major
Assignee: Portland Bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-23 21:38 UTC by Ivan Agarkov
Modified: 2018-05-24 19:42 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Ivan Agarkov 2018-05-23 21:38:21 UTC
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
Comment 1 Rex Dieter 2018-05-24 14:26:13 UTC
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 ***
Comment 2 Ivan Agarkov 2018-05-24 18:17:53 UTC
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.
Comment 3 Rex Dieter 2018-05-24 19:36:58 UTC
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 ***


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.