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

--- Comment #6 from David Faure <[email protected]> ---
KRun ends up in
KToolInvocation::startServiceByDesktopPath("/home/dfaure/.local/share/applications/kwrite-2.desktop"),
so the problem is in klauncher (KLauncher::createArgs).

Ah, I found it.
KIO::DesktopExecParser::resultingArguments looks at which protocols the
application supports. Since there's no X-KDE-Protocols entry in that desktop
file (and no Categories=KDE either), we have to assume that sftp isn't
supported (as we do with, say, LibreOffice or Firefox or whatever).

The never-ending problems of locally-created .desktop files....

I think that when associating an existing app with a new mimetype, we need to
copy over the existing desktop file, not just create one from scratch.

Alternatively, or in addition, we could have a GUI for setting the supported
protocols thing, but that's a bit too manual I guess.

Short-term workaround: add X-KDE-Protocols=KIO to your local .desktop file for
kwrite.

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

Reply via email to