D29558: Add KIO::OpenUrlJob::setShowOpenWithDialog as replacement for KRun::displayOpenWithDialog
David Faure
noreply at phabricator.kde.org
Sat May 16 10:53:51 BST 2020
dfaure added a comment.
OK I'm having second thoughts about this. Because of Windows, and because of the case of multiple URLs.
There's "displaying an open with dialog because we couldn't find any app, after a left-click on a file"
and there's "displaying an open with dialog because the user explicitly clicked on Open With..."
On Windows, it's OK if the first one falls back to QDesktopServices::openUrl (i.e. actually launch an app, no open with dialog)
while the second case must show a dialog (KRun::displayOpenWithDialog had code for the Windows native open-with dialog).
Also OpenUrlJob can only ever support a single URL while displayOpenWithDialog supports multiple URLs.
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...
We lose mimetype determination... but that's what we didn't have in KRun::displayOpenWithDialog either.
Input welcome...
REPOSITORY
R241 KIO
REVISION DETAIL
https://phabricator.kde.org/D29558
To: dfaure, ahmadsamir, broulik, svuorela
Cc: kossebau, kde-frameworks-devel, LeGast00n, cblack, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200516/d960dbd5/attachment-0001.htm>
More information about the Kde-frameworks-devel
mailing list