<table><tr><td style="">dfaure added a comment.
</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/D29558">View Revision</a></tr></table><br /><div><div><p>OK I'm having second thoughts about this. Because of Windows, and because of the case of multiple URLs.</p>

<p>There's "displaying an open with dialog because we couldn't find any app, after a left-click on a file"<br />
and there's "displaying an open with dialog because the user explicitly clicked on Open With..."</p>

<p>On Windows, it's OK if the first one falls back to QDesktopServices::openUrl (i.e. actually launch an app, no open with dialog)<br />
while the second case must show a dialog (KRun::displayOpenWithDialog had code for the Windows native open-with dialog).</p>

<p>Also OpenUrlJob can only ever support a single URL while displayOpenWithDialog supports multiple URLs.</p>

<p>Maybe I should move all this over to ApplicationLauncherJob, which supports multiple URLs (adding a ctor without a KService). Or to yet another job class...<br />
We lose mimetype determination... but that's what we didn't have in KRun::displayOpenWithDialog either.</p>

<p>Input welcome...</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D29558">https://phabricator.kde.org/D29558</a></div></div><br /><div><strong>To: </strong>dfaure, ahmadsamir, broulik, svuorela<br /><strong>Cc: </strong>kossebau, kde-frameworks-devel, LeGast00n, cblack, michaelh, ngraham, bruns<br /></div>