[Portland-bugs] [Bug 22975] New: xdg-mime takes 15 seconds due to kdeinit/ktradertest bug in KDE4
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Jul 27 15:03:50 PDT 2009
http://bugs.freedesktop.org/show_bug.cgi?id=22975
Summary: xdg-mime takes 15 seconds due to kdeinit/ktradertest bug
in KDE4
Product: Portland
Version: unspecified
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: xdg-utils
AssignedTo: portland-bugs at lists.freedesktop.org
ReportedBy: mdm at chromium.org
Created an attachment (id=28052)
--> (http://bugs.freedesktop.org/attachment.cgi?id=28052)
patch to xdg-mime to work around kdeinit/ktradertest bug in KDE4
Under KDE, xdg-mime will use ktradertest to look up MIME handlers. In KDE4,
ktradertest starts kdeinit (with --suicide --new-startup) if there is not
already a running instance around (which, apparently, there is usually not).
This copy of kdeinit will persist for about 15 seconds after it is last needed,
presumably as an optimization to allow several clients to use the same
instance.
However, kdeinit does not close its standard output, so when ktradertest is
piped into grep by xdg-mime, grep will not exit until the kdeinit process
started by ktradertest exits (because kdeinit still has grep's standard input
open, even after ktradertest has exited). This causes xdg-mime to take about 15
seconds!
The true fix for this is to fix kdeinit/ktradertest, but xdg-mime can and
probably should work around it by running a "patsy" version of ktradertest just
to get kdeinit to start.
Patch attached.
We ran into this bug in Chromium, in the default browser detection code. See
http://code.google.com/p/chromium/issues/detail?id=17179 for reference.
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Portland-bugs
mailing list