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