Bug 44047 - Setting $BROWSER=xdg-open can cause infinite loop
Summary: Setting $BROWSER=xdg-open can cause infinite loop
Status: RESOLVED FIXED
Alias: None
Product: Portland
Classification: Unclassified
Component: xdg-utils (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Portland Bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-22 03:07 UTC by Stephan Sokolow
Modified: 2012-08-09 13:36 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Stephan Sokolow 2011-12-22 03:07:33 UTC
Some applications and scripts still use $BROWSER as their primary means of allowing user customization.

However, xdg-open makes no attempt to guard against self-calling when falling back to $BROWSER.

This makes it dangerous to set BROWSER=xdg-open in order to portably integrate older applications with GUI-based mechanisms for specifying the user's preferred browser.
Comment 1 Rex Dieter 2012-08-09 13:36:26 UTC
I looked over the code, and while the possibility of hitting this case is small, it's not exactly zero either, so...

http://cgit.freedesktop.org/xdg/xdg-utils/commit/?id=1d292e3cff57998be1a4e29369df5cbdcff154b2


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.