<table><tr><td style="">ahmadsamir created this revision.<br />ahmadsamir added reviewers: Frameworks, dfaure.<br />Herald added a project: Frameworks.<br />ahmadsamir requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D24828">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>KRun unconditionally opened files with mimetype text/html (and co.) with<br />
the browser application set in kdeglobals, BrowserApplication=, and if it's<br />
not set, it fells back to mimeapps.list (x-scheme-handler/http*).</p>
<p>IMHO, there are two distinctive use cases here, opening http*:// links<br />
with a web browser (which is what the user wants most of the time); and<br />
opening local '.*html' files on the user's machine, usually with the<br />
intention to edit them; the two cases can/should be mutually exclusive.</p>
<p>This gives the choice back to the user, as he can set his preferred app<br />
to open local .html files, be it a web browser or a text editor.</p>
<p>This won't impact new user accounts because most browsers .desktop files<br />
have Mimetype entries that cover most of the .html and co. types. So it'll<br />
either be the default app already or the user can select his favourite browser<br />
from the open-with list.</p>
<p>Thanks to broulik for pin-pointing the location in the code that caused<br />
this behaviour first.</p>
<p>BUG: 399020<br />
FIXED-IN: 5.64</p></div></div><br /><div><strong>TEST PLAN</strong><div><ul class="remarkup-list">
<li class="remarkup-list-item">Set some web browser as the default in the component chooser kcm</li>
<li class="remarkup-list-item">Open Dolphin and using any .html file set the default app to, say, kwrite</li>
<li class="remarkup-list-item">Try to open a local .html file, notice that it opens in the web browser you set</li>
<li class="remarkup-list-item">Apply the patch, then try again, it should be opened with kwrite</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>BRANCH</strong><div><div>ahmad/separate-browser-html (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D24828">https://phabricator.kde.org/D24828</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/widgets/krun.cpp</div></div></div><br /><div><strong>To: </strong>ahmadsamir, Frameworks, dfaure<br /><strong>Cc: </strong>kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns<br /></div>