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

Max <max...@smoothware.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |max...@smoothware.net

--- Comment #2 from Max <max...@smoothware.net> ---
Can confirm this on kf5 5.86.0.

Hope following snippet is helpful.

Before, below code would open the example.js file in text editor.
Now it fails with:
```
kf.service.services: KApplicationTrader: mimeType "x-scheme-handler/file" not
found
Could not launch external editor.
```

```
        const QUrl script = QUrl::fromLocalFile("..../scripts/example.js");
        KIO::OpenUrlJob *job = new KIO::OpenUrlJob(script);
        job->setUiDelegate(new
KIO::JobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, app()->mainWindow()));
        if(!job->exec()) {
                qDebug() << job->errorString();
                if(!QDesktopServices::openUrl(script))
                        qDebug() << "Could not launch external editor.";
        }
```

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

Reply via email to