Summary: | kde-open --noninteractive foo.noassoc crashes | ||
---|---|---|---|
Product: | [Unmaintained] kdelibs | Reporter: | Rex Dieter <rdieter> |
Component: | general | Assignee: | kdelibs bugs <kdelibs-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | adawit, frank78ac, lasse.liehu |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Patch that fixes the crash in some situations |
Description
Rex Dieter
2011-03-31 15:34:58 UTC
I think the backtrace is clear enough - it tries to open a dialog asking the user for an app to open the file with, and that fails because you've run it without GUI support (because of the --noninteractive option). Probably it should just exit with an error message in that case. Can you still reproduce this problem ? I cannot reproduce it with KDE 4.7. I can't reproduce it anymore on either kde-4.6.5 or kde-4.7.0 I get, $ kde-open --noninteractive foo.noassoc kioclient(28437) KMessageBoxWrapper::error: "<html>Unable to run the command specified. The file or folder <b>file:///home/rdieter/foo.noassoc</b> does not exist.</html>" so, not ideal, but no crash either. yay. I can reproduce this with kde-runtime and kdelibs built recently (probably less than two weeks ago) from master branch. kde-open aborts with message: QWidget: Cannot create a QWidget when no GUI is being used Created attachment 87439 [details]
Patch that fixes the crash in some situations
This patch asks KRun to not show progress info, which fixes the crash when trying to show progress info. This does not fix the crash when trying to show an error message.
fyi, recent crashes are being tracked in bug #336117 |