Bug 91989

Summary: Add support for multi-word $BROWSER commands
Product: Portland Reporter: Per Olofsson <pelle>
Component: xdg-utilsAssignee: Portland Bugs <portland-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: pelle
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: xdg-open-browser-multiword.diff
xdg-open-browser-multiword-2.diff

Description Per Olofsson 2015-09-13 07:50:32 UTC
Created attachment 118230 [details]
xdg-open-browser-multiword.diff

If xdg-open falls back to using the $BROWSER variable, it does not support multi-word browser commands since IFS has been set to ':'. This patch fixes the issue by resetting IFS.
Comment 1 Per Olofsson 2015-09-13 07:56:31 UTC
Created attachment 118231 [details] [review]
xdg-open-browser-multiword-2.diff

Here's a better version of the patch that uses a local variable instead of a global one to store the original IFS.

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.