Hide the "This application may not be able to open all mime types"

Applications like VLC support so many mime types that they sometimes deem unnecessary to declare every single one they support.

Same as on a recent Reddit post, I saw that banner showing when I selected VLC as my default player:

When you click on the “View Details” button, there are none actually unsupported mime types but instead just unlisted supported mime types.

As the following code snippet in the Plasma Workspace repo suggests, this banner also shows when there are none unsupported mime types:

    component MimeMessage: Kirigami.InlineMessage {
        property var componentChooser
        Layout.fillWidth: true
        visible: componentChooser.unsupportedMimeTypes.length > 0 || componentChooser.mimeTypesNotAssociated.length > 0
        type: Kirigami.MessageType.Warning
        text: i18nc("@info:status", "This application may not be able to open all file types.");
        actions: Kirigami.Action {
            text: i18nc("@action:button", "View Details")
            onTriggered: {
                overlay.componentChooser = componentChooser
                overlay.open()
            }
        }
    }

My suggestion is just not to show this banner (or at least reword it) when componentChooser.unsupportedMimeTypes.length == 0 and componentChooser.mimeTypesNotAssociated.length > 0, to avoid being misleading to the end user.

1 Like