Invalid MIME type in org.kde.kdeconnect_open.desktop

Bug #1878400 reported by Horst Schirmeier
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
KDE Connect - Desktop (Linux)
Fix Released
Medium
kdeconnect (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Every time update-desktop-database runs (e.g. in a package's postinst script), it complains about a broken MIME entry in /usr/share/applications/org.kde.kdeconnect_open.desktop:

  Error in file "/usr/share/applications/org.kde.kdeconnect_open.desktop": "*/*" is an invalid MIME type ("*" is an unregistered media type)

Steps to reproduce:
- sudo apt install kdeconnect
- sudo update-desktop-database

Expected behavior:
- No error message.

Actual behavior:
- Aforementioned error message, printed by update-desktop-database.

This is how Void Linux fixed this issue:
https://github.com/void-linux/void-packages/issues/21311
https://github.com/void-linux/void-packages/commit/17060bfa012b12896d3d7ec502caa154af6135b4

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: kdeconnect 1.4-0ubuntu5
ProcVersionSignature: Ubuntu 5.4.0-29.33-generic 5.4.30
Uname: Linux 5.4.0-29-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: KDE
Date: Wed May 13 12:21:15 2020
InstallationDate: Installed on 2016-11-26 (1263 days ago)
InstallationMedia: Kubuntu 16.10 "Yakkety Yak" - Release amd64 (20161012.1)
SourcePackage: kdeconnect
UpgradeStatus: Upgraded to focal on 2020-03-06 (68 days ago)

Revision history for this message
In , Orctarorga (orctarorga) wrote :

In the desktop file `org.kde.kdeconnect_open.desktop`, the `MimeType` is
`*/*`.

`update-desktop-database` is a tool provided in `desktop-file-utils` that

> updates the database containing a cache of MIME types handled by desktop files

When running `update-desktop-database`, it throws an error saying that

> "*/*" is an invalid MIME type ("*" is an unregistered media type)

This is reported in [Clear Linux](https://github.com/clearlinux/distribution/issues/1906) and [Arch Linux](https://bugs.archlinux.org/task/65865)

STEPS TO REPRODUCE
1. Run `update-desktop-database`

OBSERVED RESULT
> "*/*" is an invalid MIME type ("*" is an unregistered media type)

Revision history for this message
In , 8p-k26-gj (8p-k26-gj) wrote :

Is that probably what the "all/allfiles" type is for?

Revision history for this message
In , Saikat Patra (saikat0511) wrote :

I can reproduce this in v1.4, might be present in later versions too.

*/* is not a valid mime type. If I assume this mime type is supposed to include all files, the valid mime type for that is application/octet-stream.

Modifying /usr/share/applications/org.kde.kdeconnect_open.desktop to reflect the same fixes the issue.

Revision history for this message
In , Rex Dieter (rdieter) wrote :

there's multiple validation errors with this .desktop file, MimeType is one:

$ desktop-file-validate kdeconnect-kde-20.04.0/data/org.kde.kdeconnect_open.desktop | grep error:
kdeconnect-kde-20.04.0/data/org.kde.kdeconnect_open.desktop: error: (will be fatal in the future): value "*/*;" for key "MimeType" in group "Desktop Entry" contains value "*/*" which is an invalid MIME type: "*" is an unregistered media type
kdeconnect-kde-20.04.0/data/org.kde.kdeconnect_open.desktop: error: key "MimeType" is present in group "Desktop Entry", but the type is "Service" while this key is only valid for type "Application"
kdeconnect-kde-20.04.0/data/org.kde.kdeconnect_open.desktop: error: key "Exec" is present in group "Desktop Entry", but the type is "Service" while this key is only valid for type "Application"
kdeconnect-kde-20.04.0/data/org.kde.kdeconnect_open.desktop: error: key "Terminal" is present in group "Desktop Entry", but the type is "Service" while this key is only valid for type "Application"
kdeconnect-kde-20.04.0/data/org.kde.kdeconnect_open.desktop: error: key "Categories" is present in group "Desktop Entry", but the type is "Service" while this key is only valid for type "Application"

Revision history for this message
Horst Schirmeier (horst) wrote :
Revision history for this message
In , Philipp Reichmuth (phrxmd) wrote :

You can fix this by changing */* to application/octet-stream as suggested by Saikat Patra.

There are patches to this end for a number of distributions all over the internet, like here: https://github.com/void-linux/void-packages/commit/17060bfa012b12896d3d7ec502caa154af6135b4, but it's an upstream issue.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in kdeconnect (Ubuntu):
status: New → Confirmed
Changed in kdeconnect-desktop:
importance: Unknown → Medium
Revision history for this message
In , Rex Dieter (rdieter) wrote :
Changed in kdeconnect-desktop:
status: Unknown → Fix Released
Revision history for this message
In , ®γσ, ξηg Lιαη Ημ (englianhu) wrote :

Thanks lot !!!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.