use content_type as fallback in appchooser dialog
ClosedPublic

Authored by sitter on Mar 6 2020, 12:47 PM.

Details

Summary

when there is no filename (e.g. for magnet uris) the dialog would show
%1(I18NARGUMENTMISSING). very awkward. instead fall back to the content
type so it'd say something like 'Select an application to open
x-scheme-handler/magnet'

Test Plan

warning is gone from dialog when trying to open magnet uris without suitable client

Diff Detail

Repository
R838 Flatpak Support: KDE Portal for XDG Desktop
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
sitter created this revision.Mar 6 2020, 12:47 PM
Restricted Application added a project: Plasma. · View Herald TranscriptMar 6 2020, 12:47 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
sitter requested review of this revision.Mar 6 2020, 12:47 PM
jgrulich accepted this revision.Mar 6 2020, 1:47 PM
This revision is now accepted and ready to land.Mar 6 2020, 1:47 PM
This revision was automatically updated to reflect the committed changes.