Comment 21 for bug 289592

Revision history for this message
Removed by request (removed1836289) wrote :

adys@azura:/usr/share/mime/packages$ ack allfiles
kde.xml
186: <mime-type type="all/allfiles">

adys@azura:/usr/share/mime/packages$ dlocate /usr/share/mime/packages/kde.xml
kdelibs5-data: /usr/share/mime/packages/kde.xml

adys@azura:/usr/share/mime/packages$ sudo rm kde.xml
adys@azura:/usr/share/mime/packages$ sudo apt-get install --reinstall shared-mime-info kdelibs5-data
Preparing to replace kdelibs5-data 4:4.6.2-0ubuntu4 (using .../kdelibs5-data_4%3a4.6.2-0ubuntu4_all.deb) ...
Unpacking replacement kdelibs5-data ...
Preparing to replace shared-mime-info 0.90-1ubuntu3 (using .../shared-mime-info_0.90-1ubuntu3_amd64.deb) ...
Unpacking replacement shared-mime-info ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for man-db ...
Setting up kdelibs5-data (4:4.6.2-0ubuntu4) ...
Setting up shared-mime-info (0.90-1ubuntu3) ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Unknown media type in type 'uri/mms'
Unknown media type in type 'uri/mmst'
Unknown media type in type 'uri/mmsu'
Unknown media type in type 'uri/pnm'
Unknown media type in type 'uri/rtspt'
Unknown media type in type 'uri/rtspu'
Unknown media type in type 'interface/x-winamp-skin'

Why is this invalid in kde4libs? This is where it comes from. interface/x-winamp-skin is a stupid mimetype, the uri/ mimetypes should be replaced by x-scheme-handler/ mimetypes as defined in http://standards.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec-latest.html#id2869854
Ass for the all/ mimetypes, god knows what those are.

And a quick grep on the sources:

adys@azura:~/tmp/kde4libs-4.6.2$ ack allfiles
kded/kbuildservicefactory.cpp
159: // TODO do the same for all/all and all/allfiles, if (!KServiceTypeProfile::configurationMode())

kdecore/services/kservicetypeprofile.h
70: * and all/allfiles are excluded from the results of the queries.

kio/kio/kfileitemactions.cpp
348: *it == "allfiles" /*compat with KDE up to 3.0.3*/) {
355: *it == "all/allfiles") {

kio/tests/kfstest.cpp
114: filter << "all/allfiles" << "text/plain";
115: dlg->setMimeFilter( filter, "all/allfiles" );

kio/tests/kfdtest.cpp
23: filter << "all/allfiles" << "text/plain";
24: dlg->setMimeFilter( filter, "all/allfiles" );

mimetypes/kde.xml
186: <mime-type type="all/allfiles">
adys@azura:~/tmp/kde4libs-4.6.2$ ack "uri/"
mimetypes/kde.xml
190: <!-- uri/ fake mime types -->
191: <mime-type type="uri/mms">
194: <mime-type type="uri/mmst">
197: <mime-type type="uri/mmsu">
200: <mime-type type="uri/pnm">
203: <mime-type type="uri/rtspt">
206: <mime-type type="uri/rtspu">
adys@azura:~/tmp/kde4libs-4.6.2$ ack winamp-skin
kded/tests/kmimeassociationstest.cpp
352: // #178560: Removing ark from interface/x-winamp-skin didn't work
353: const QString mime = "interface/x-winamp-skin";
358: "interface/x-winamp-skin=fakearkapplication.desktop;\n"));

mimetypes/kde.xml
350: <mime-type type="interface/x-winamp-skin">