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
Branch
fix-i18n
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 23366
Build 23384: arc lint + arc unit
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.