Bug 194883

Summary: kfmclient blocks when using a custom browser (in default applications)
Product: [Applications] konqueror Reporter: Daniel Hahler <kde-bugzilla>
Component: generalAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: cfox04
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Unspecified   
Latest Commit: Version Fixed In:

Description Daniel Hahler 2009-06-01 17:05:11 UTC
Version:            (using KDE 4.2.85)
Installed from:    Ubuntu Packages

kfmclient used to not block the current process when being called, now it does.

$ kfmclient openURL http://google.com
kfmclient(4213) ClientApp::doIt: Creating ClientApp
kfmclient(4213) ClientApp::createNewWindow: Using external browser "!firefox"
^C

This does not happen, when chosing "in an application based on the contents of the URL" (Konqueror in my case):
$ kfmclient openURL http://google.com
kfmclient(4650) ClientApp::doIt: Creating ClientApp
Launched ok, pid = 4654


This causes problems with libs/programs like Apport (see https://launchpad.net/bugs/337382) and Python's webbrowser lib:
>>> import webbrowser
>>> webbrowser.open("http://www.google.com/")
^CTraceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.6/webbrowser.py", line 61, in open
    if browser.open(url, new, autoraise):
  File "/usr/lib/python2.6/webbrowser.py", line 365, in open
    p.wait()
  File "/usr/lib/python2.6/subprocess.py", line 1123, in wait
    pid, sts = os.waitpid(self.pid, 0)
KeyboardInterrupt


I've thought at first that only the behavior has been changed, but it clearly looks like a bug now.
Comment 1 Chuck 2009-07-15 05:19:16 UTC
I can confirm this bug: If using anything other than Konqueror as a default web browser, kfmclient will not properly shut down after it opens the browser.  This occurs for both opening Firefox up the first time, or for opening a new URL in a tab in an existing Firefox session.
Comment 2 Chuck 2009-07-15 05:21:35 UTC
P.S. --> I also tried Arora as a default browser and the bug persists in the same way.
Comment 3 Tommi Tervo 2009-07-15 09:05:41 UTC

*** This bug has been marked as a duplicate of bug 171185 ***