D18778: [KRun] Fall back to reading text/html in mimeapps.list if others aren't there

Nathaniel Graham noreply at phabricator.kde.org
Wed Feb 6 04:55:35 GMT 2019


ngraham created this revision.
ngraham added reviewers: dfaure, Frameworks.
Herald added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
ngraham requested review of this revision.

REVISION SUMMARY
  If System Settings > Applications > Default Applications > Web Browser is using the setting "In an application based on the contents of the URL", then lookup can fail and pass the URL to the wrong app when no default app is set in `kdeglobals` and `mimeapps.list` has no `x-scheme-handler/https` or `x-scheme-handler/http` entries, but does have an entry for `text/html`.
  
  This patch makes KRun additionally fall back to reading from `text/html` in `mimeapps.list` if it's present.

TEST PLAN
  Can now open URLs when using "In an application based on the contents of the URL when `mimeapps.list` only has an entry for `text/html`.

REPOSITORY
  R241 KIO

BRANCH
  more-mimeapps-fallbacks (branched from master)

REVISION DETAIL
  https://phabricator.kde.org/D18778

AFFECTED FILES
  src/widgets/krun.cpp

To: ngraham, dfaure, #frameworks
Cc: kde-frameworks-devel, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190206/1746e525/attachment.html>


More information about the Kde-frameworks-devel mailing list