Bug 235563

Summary: invalid MIME type in /usr/share/applications/kde4/kalzium.desktop
Product: [Applications] kalzium Reporter: Laurent Bonnaud <L.Bonnaud>
Component: generalAssignee: Kalzium Developers <kalzium>
Status: RESOLVED FIXED    
Severity: normal CC: egon.willighagen, etienne.rebetez, rdieter
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Laurent Bonnaud 2010-04-27 19:19:39 UTC
Version:           2.3.80 (using 4.4.2 (KDE 4.4.2), Kubuntu packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.32-21-generic-pae

Here is the problem:

# update-desktop-database
[...]
Error in file "/usr/share/applications/kde4/kalzium.desktop": "chemical/x-cml" is an invalid MIME type ("chemical" is an unregistered media type)
Comment 1 Laurent Bonnaud 2010-04-27 19:25:14 UTC
Also reported here:

https://bugs.launchpad.net/kdeedu/+bug/570822
Comment 2 Egon Willighagen 2010-04-28 07:59:23 UTC
The chemical MIME types can be downloaded from:

https://sourceforge.net/projects/chemical-mime/
Comment 3 Laurent Bonnaud 2010-05-03 09:32:47 UTC
Could those MIME types be included into the KDE distribution or do they have to be packaged downstream ?
Comment 4 Rex Dieter 2010-10-11 16:44:56 UTC
I just tested trying to open example.cml from 
http://www.ch.ic.ac.uk/chemime/
in kalzium from kdeedu-4.5.2 

and it fails.

kalzium ~/Documents/example.cml 
kalzium: Unexpected argument '/home/rdieter1/Documents/example.cml'.
kalzium: Use --help to get a list of available command line options.

So, I'd suggest removing the MimeTYpes= from the .desktop

When/if loading those files is fixed, then perhaps fixing registration of the chemical/-related mimetypes is in order.
Comment 5 Rex Dieter 2010-10-11 16:55:24 UTC
Looks like cml files can be opened/saved from within kalzium's molecule editor, but my quick 5-minute search didnt turn up any way of accessing that from the command-line.
Comment 6 Etienne 2010-10-18 19:14:54 UTC
yes, kalzium doesn't provide any comand-line options at the moment. 
Bug 253140	is kinda similar.
Comment 7 Rex Dieter 2010-10-18 19:19:25 UTC
SVN commit 1187219 by rdieter:

drop unhandled (and invalid) mimetype

BUG: 235563


 M  +0 -1      kalzium.desktop  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1187219
Comment 8 Rex Dieter 2010-10-18 19:21:36 UTC
SVN commit 1187220 by rdieter:

backport r1187219

drop unhandled (and invalid) mimetype.

BUG: 235563


 M  +0 -1      kalzium.desktop  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1187220
Comment 9 Egon Willighagen 2010-10-18 20:22:19 UTC
CML files should be readable with Avogadro:

http://kde-apps.org/content/show.php/Avogadro?content=59521

Something like:

avogadro bug708.cml