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.
Can you provide the source to the offending program? A reproducing example will be nice.
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(); }
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.
Sounds like this bug got filed with Qt. Unfortunately no copy was made here. Resolving as upstream tho.