Re: Unknown media types

2014-03-22 Thread Michael Palimaka
On 03/16/2014 09:46 PM, David Faure wrote:
 On Saturday 15 March 2014 19:24:08 Michael Palimaka wrote:
 Hi,

 kcoreaddons installs /usr/share/mime/packages/kde5.xml which causes the
 following warnings when update-mime-database is executed:

 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'

 This has been around for a long time, but are they actually used by
 anything anymore and if not, is this a good opportunity to clean it up?
 
 The question comes up regularly, but it would be useful if you could actually 
 do some research on who uses these uri/ mimetypes.

On the Ubuntu bug about this, I found a reference to the freedesktop
spec[1] which suggests these should probably be x-scheme-handler/foo
instead.

Checking lxr, usage is:
* matching oxygen-icons eg. /22x22/mimetypes/uri-mmst.png (and a script
in calligra that checks against oxygen-icons)
* kplayer
* kio/src/ioslaves/protocols/foo.protocol
* kde-dev-scripts list of what appears to be mime types renamed kde 3 - 4
* Some old emerge stuff

So, can we just change the kio .protocol files and document that on the
porting notes?

[1]:
http://standards.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec-latest.html#id2711002

___
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel


Re: Unknown media types

2014-03-16 Thread David Faure
On Saturday 15 March 2014 19:24:08 Michael Palimaka wrote:
 Hi,
 
 kcoreaddons installs /usr/share/mime/packages/kde5.xml which causes the
 following warnings when update-mime-database is executed:
 
 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'
 
 This has been around for a long time, but are they actually used by
 anything anymore and if not, is this a good opportunity to clean it up?

The question comes up regularly, but it would be useful if you could actually 
do some research on who uses these uri/ mimetypes.

For all/all and all/allfiles I can answer it: all/allfiles can be removed and 
replaced with application/octet-stream,
all/all is basically application/octet-stream+inode/directory  (everything is 
either a file or a directory).

You can adjust the code below, and then document the change in the porting 
docs, and then remove the mimetypes from kde5.xml.

./kde4support/tests/kfstest.cpp:63:filter  all/allfiles  text/plain;
./kde4support/tests/kfstest.cpp:64:dlg-setMimeFilter(filter, 
all/allfiles);
./kde4support/tests/kfstest.cpp:142:filter  all/allfiles  
text/plain;
./kde4support/tests/kfstest.cpp:143:dlg-setMimeFilter(filter, 
all/allfiles);
./kde4support/src/kio/kfiledialog.h:243: * To add a filter item for all 
files matching @c '*', add @c all/allfiles
./kservice/src/kbuildsycoca/kbuildservicefactory.cpp:172:// TODO do the 
same for all/all and all/allfiles, if 
(!KServiceTypeProfile::configurationMode())
./kservice/src/services/kservicetypeprofile.h:66: * This method activates a 
special mode of KServiceTypeProfile, in which all/all
./kservice/src/services/kservicetypeprofile.h:67: * and all/allfiles are 
excluded from the results of the queries.
./kio/src/filewidgets/kfilefiltercombo.cpp:190:
d-m_filters.append(QLatin1String(all/allfiles));

-- 
David Faure, fa...@kde.org, http://www.davidfaure.fr
Working on KDE, in particular KDE Frameworks 5

___
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel


Unknown media types

2014-03-15 Thread Michael Palimaka
Hi,

kcoreaddons installs /usr/share/mime/packages/kde5.xml which causes the
following warnings when update-mime-database is executed:

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'

This has been around for a long time, but are they actually used by
anything anymore and if not, is this a good opportunity to clean it up?

Best regards,
Michael

___
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel