Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 743768

Summary: gvfs-open and xdg-open can create an endless loop
Product: Red Hat Enterprise Linux 6 Reporter: Matěj Cepl <mcepl>
Component: gvfsAssignee: Ondrej Holy <oholy>
Status: CLOSED NOTABUG QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1   
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-06 09:06:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Matěj Cepl 2011-10-05 23:57:19 UTC
Description of problem:
Whenever I try to call either gvfs-open/xdg-open with URL, I get gvfsd running in 100% on my one core. Fortunately, I have two so I was able to install and run http://sourceware.org/systemtap/examples/process/forktracker.stp which shown this interesting thing (part of the endlessly repeating pattern)

Wed Oct  5 23:41:22 2011 : gvfs-open (22542) created 22543
Wed Oct  5 23:41:22 2011 : gvfs-open (22543) created 22544
Wed Oct  5 23:41:22 2011 : gvfs-open (22544) is exec'ing /home/matej/repos/jetpack/bin/xdg-open
Wed Oct  5 23:41:22 2011 : gvfs-open (22544) is exec'ing /home/matej/.bin/xdg-open
Wed Oct  5 23:41:22 2011 : gvfs-open (22544) is exec'ing /usr/lib64/qt-3.3/bin/xdg-open
Wed Oct  5 23:41:22 2011 : gvfs-open (22544) is exec'ing /usr/local/bin/xdg-open
Wed Oct  5 23:41:22 2011 : gvfs-open (22544) is exec'ing /usr/bin/xdg-open
Wed Oct  5 23:41:22 2011 : xdg-open (22544) created 22545
Wed Oct  5 23:41:22 2011 : xdg-open (22545) is exec'ing /usr/bin/gvfs-open
Wed Oct  5 23:41:22 2011 : xdg-open (22544) created 22546
Wed Oct  5 23:41:22 2011 : xdg-open (22546) is exec'ing /usr/bin/gvfs-open
Wed Oct  5 23:41:22 2011 : gvfs-open (22546) created 22547
Wed Oct  5 23:41:22 2011 : gvfs-open (22547) created 22548

By downgrading from F16 to RHEL 6.2, I have somehow achieved that my preferred browser (in gnome-default-applications-properties) was set to xdg-open.

Version-Release number of selected component (if applicable):
mitmanek:~# rpm -qf /usr/bin/gvfs-open /usr/bin/xdg-open 
gvfs-1.4.3-13.el6.x86_64
xdg-utils-1.0.2-17.20091016cvs.el6.noarch

How reproducible:
100% on my system

Steps to Reproduce:
1. set in gnome-default-applications-properties xdg-open as a default browser
2. either xdg-open http://www.google.com or gvfs-open http://www.google.com
2.
3.
  
Actual results:
systemtap shows these two commands looping

Expected results:
URL opened in something reasonable or 

Additional info:
settting firefox as my default browser clears the sitaution.

Comment 2 Suzanne Logcher 2011-10-06 18:51:57 UTC
Since RHEL 6.2 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.
               
Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 3 Ondrej Holy 2015-10-06 09:06:12 UTC
xdg-open is just shell script which calls gvfs-open to open preferred application under gnome. So endless loop is created if your preferred application for anything is xdg-open. However this isn't bug, but this is wrong configuration...