Bug 282560 - klauncher said: Unknown protocol ''.
Summary: klauncher said: Unknown protocol ''.
Status: RESOLVED UPSTREAM
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: 4.7
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-22 14:57 UTC by jangeorg.vdwath
Modified: 2018-02-23 21:21 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jangeorg.vdwath 2011-09-22 14:57:27 UTC
Version:           4.7 (using KDE 4.7.1) 
OS:                Linux

klauncher said: Unknown protocol ''.

Reproducible: Always

Steps to Reproduce:
I have a program written in Qt which launches a dialog to save a file. Qt provides the option to use the native filesystem dialog, which launches the kde dialog. If I specify a suggested file name that contains a "." ie. "myfile.v1-a.txt" I get the following error message "klauncher said: Unknown protocol ''."


Expected Results:  
The file dialog should open up with the suggested file name.
Comment 1 Shlomi Fish 2011-09-22 16:32:35 UTC
Can you provide the source to the offending program? A reproducing example will be nice.
Comment 2 jangeorg.vdwath 2011-09-23 05:50:49 UTC
I wrote an example app which launch exactly the same line of code that my project does, but it works in the example app but crash in my project. Am a bit baffled. I found the problem are linked to if I set the filter on the dialog. I will investigate further why Qt crashes.
A working example is 

#include <QtGui>

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);
    
    QString saveFileName = QFileDialog::getSaveFileName(NULL, "Test", "~/temp/file.v1-a.txt", "Data file (*.dat)", NULL, QFileDialog::DontConfirmOverwrite);
    return app.exec();
}
Comment 3 jangeorg.vdwath 2011-09-23 07:37:52 UTC
Found the problem. The example app still produces the error message "klauncher said: Unknown protocol ''" which generates a QtCryticalMsg. In my project when I receive a QtCryticalMsg I close down the program. I will log the bug with Qt as well.
Comment 4 Ben Creasy 2018-02-23 21:21:48 UTC
Sounds like this bug got filed with Qt. Unfortunately no copy was made here. Resolving as upstream tho.