[Portland-bugs] [Bug 105734] New: xdg-open: prioritizes xdg_mime over $BROWSER
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sun Mar 25 14:01:06 UTC 2018
https://bugs.freedesktop.org/show_bug.cgi?id=105734
Bug ID: 105734
Summary: xdg-open: prioritizes xdg_mime over $BROWSER
Product: Portland
Version: unspecified
Hardware: Other
OS: Linux (All)
Status: NEW
Severity: enhancement
Priority: medium
Component: xdg-utils
Assignee: portland-bugs at lists.freedesktop.org
Reporter: marco at sirabella.org
Created attachment 138345
--> https://bugs.freedesktop.org/attachment.cgi?id=138345&action=edit
fix
Even if $BROWSER is set, still prioritizes `xdg-mime query default
x-scheme-handler/<schemetype>`.
Version:
```
$ xdg-open --version
xdg-open 1.1.2
```
Steps to Reproduce:
```
$ BROWSER=echo xdg-open "https://bugs.freedesktop.org/"
```
Actual Behavior:
opens given URL in default web browser (mine is firefox)
Expected Behavior:
run $BROWSER <url>, in this case `echo https://bugs.freedesktop.org/`
if $BROWSER not found, fallback to xdg-mime defaults
I've found a hackish workaround for the time being:
```
$ DISPLAY="" BROWSER=echo xdg-open "https://bugs.freedesktop.org/"
https://bugs.freedesktop.org/
```
I'm attaching a patch for the reordering of priorities to fix this
Thanks,
-- Marco Sirabella
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/portland-bugs/attachments/20180325/a7ac4441/attachment.html>
More information about the Portland-bugs
mailing list