Bug 743768 - gvfs-open and xdg-open can create an endless loop
Summary: gvfs-open and xdg-open can create an endless loop
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: gvfs
Version: 6.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Ondrej Holy
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-05 23:57 UTC by Matěj Cepl
Modified: 2015-10-06 09:06 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-10-06 09:06:12 UTC
Target Upstream Version:


Attachments (Terms of Use)

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...


Note You need to log in before you can comment on or make changes to this bug.