https://bugs.kde.org/show_bug.cgi?id=499727

            Bug ID: 499727
           Summary: xdg file dialog does not work if the application title
                    is longer than 66 characters
    Classification: Frameworks and Libraries
           Product: frameworks-kio
           Version: 6.10.0
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Open/save dialogs
          Assignee: kio-bugs-n...@kde.org
          Reporter: frank-fisc...@shadow-soft.de
                CC: kdelibs-b...@kde.org
  Target Milestone: ---

SUMMARY

If the kio file dialog is called via the xdg mechanism, e.g. by Qt's
QFileDialog using native dialogs, and the application title is longer than 66
characters, the dialog fails with an error message.

STEPS TO REPRODUCE

Consider the following test program:

----
#include <QApplication>
#include <QFileDialog>

int main(int argc, char **argv)
{
    QApplication app(argc, argv);

    // this works
    // app.setApplicationName(QString(66, 'x'));

    // this fails
    app.setApplicationName(QString(67, 'x'));

    QFileDialog::getOpenFileName(nullptr, "open file");

    return app.exec();
}
----

OBSERVED RESULT

The application shows error message:

"Unable to create KIO worker. Can not create a socket for launching a KIO
worker for protocol 'tags'."

EXPECTED RESULT

The file dialog works.

SOFTWARE/OS VERSIONS
Operating System: Void 
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.1
Kernel Version: 6.12.12_1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 PRO 7530U with Radeon Graphics
Memory: 14.4 GiB of RAM
Graphics Processor: AMD Radeon Graphics


ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to