Bug 70834 - Couldn't find the native MimeType in kivio's desktop file
Summary: Couldn't find the native MimeType in kivio's desktop file
Status: RESOLVED FIXED
Alias: None
Product: koffice
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: KOffice Bug Wranglers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-19 13:23 UTC by Neal Becker
Modified: 2004-05-08 15:13 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Neal Becker 2003-12-19 13:23:19 UTC
Version:           unknown (using KDE 3.1.94 (3.2 Beta 2), compiled sources)
Compiler:          gcc version 3.3.2 20031022 (Red Hat Linux 3.3.2-1)
OS:          Linux (i686) release 2.4.22-1.2129.nptl

This appears to be similar to 11171, but I couldn't find the resolution to this bug.

kivio and karbon display this problem, but not kword.

koffice (lib kofficecore): ERROR: Couldn't find the native MimeType in kivio's desktop file. Check your installation !

Here is what kbuildsycoca says:
QPixmap: Cannot create a QPixmap when no GUI is being used
QPixmap: Cannot create a QPixmap when no GUI is being used
kbuildsycoca running...
kio (KSycoca): Trying to open ksycoca from /var/tmp/kdecache-nbecker/ksycoca
Reusing existing ksycoca
kbuildsycoca: Recreating ksycoca file (/var/tmp/kdecache-nbecker/ksycoca, version 70)
kbuildsycoca: WARNING: Property 'X-KDE-Weight' is defined multiple times (KOfficeFilter)
kbuildsycoca: VFolderMenu::mergeFile: /opt/kde3.2-beta2/etc/xdg/menus/applications-merged/kde-essential.menu
kbuildsycoca: VFolderMenu::mergeFile: /opt/kde3.2-beta2/etc/xdg/menus/kde-settings.menu
kbuildsycoca: VFolderMenu::mergeFile: /opt/kde3.2-beta2/etc/xdg/menus/kde-information.menu
kbuildsycoca: Directory and kde-information.directory requires combining!
kbuildsycoca: VFolderMenu::mergeFile: /opt/kde3.2-beta2/etc/xdg/menus/kde-screensavers.menu
kbuildsycoca: Directory and kde-system-screensavers.directory requires combining!
kbuildsycoca: Menu applications-kmenuedit.menu not found.
kbuildsycoca: VFolderMenu::mergeFile: 
kbuildsycoca: Processing KDE Legacy dirs for <KDE>
kbuildsycoca: processKDELegacyDirs()
kio (KService*): WARNING: The desktop entry file Utilities/kfilereplacepart.desktop has Type=Service but is located under "apps" instead of "services"
kio (KService*): WARNING: Invalid Service : Utilities/kfilereplacepart.desktop
kbuildsycoca: Looking up applications under /usr/share/applications/
kio (KService*): WARNING: Invalid Service : /usr/share/applications/net-xosview.desktop
kbuildsycoca: Looking up applications under /opt/kde3.2-beta2/share/applications/
kbuildsycoca: Looking up applications under /opt/kde3.2-beta2/share/applications/kde/
kbuildsycoca: Looking up applications under /home/nbecker/.local/share/applications/
kbuildsycoca: Moving Settings/Information to Information
kio (KMimeType): WARNING: 'kdeveloplanguagesupport.desktop' specifies undefined mimetype/servicetype 'KDevelop/Part'
kbuildsycoca: WARNING: '/usr/share/applications/kdevelop.desktop' specifies undefined mimetype/servicetype 'application/x-kdevelop-project'
kbuildsycoca: WARNING: 'kmixctrl_restore.desktop' specifies undefined mimetype/servicetype 'Daemon'
kbuildsycoca: WARNING: 'kmplayer_component.desktop' specifies undefined mimetype/servicetype 'audio/x-mp2'
kbuildsycoca: WARNING: 'kmplayer_component.desktop' specifies undefined mimetype/servicetype 'video/x-avi'
kbuildsycoca: WARNING: 'kfile_ooo.desktop' specifies undefined mimetype/servicetype 'application/vnd.sun.xml.writer.math'
kbuildsycoca: WARNING: '/opt/kde3.2-beta2/share/applications/kde/noatun.desktop' specifies undefined mimetype/servicetype 'audio/x-mp2'
kio (KMimeType): WARNING: 'kbearimportfilter.desktop' specifies undefined mimetype/servicetype 'KParts/Plugin'
kbuildsycoca: WARNING: '/opt/kde3.2-beta2/share/applications/kde/kvoctrain.desktop' specifies undefined mimetype/servicetype 'text/x-kvtml'
kbuildsycoca: WARNING: 'kxkb.desktop' specifies undefined mimetype/servicetype 'Daemon'
kbuildsycoca: WARNING: '/opt/kde3.2-beta2/share/applications/kde/kaboodle.desktop' specifies undefined mimetype/servicetype 'audio/x-mp2'
kbuildsycoca: WARNING: 'kdevjavadebugger.desktop' specifies undefined mimetype/servicetype 'KDevelop/Part'
kbuildsycoca: WARNING: '/usr/share/applications/net-gvim.desktop' specifies undefined mimetype/servicetype 'text/english'
kbuildsycoca: WARNING: '/usr/share/applications/net-gvim.desktop' specifies undefined mimetype/servicetype 'text/x-c'
kbuildsycoca: WARNING: '/usr/share/applications/net-gvim.desktop' specifies undefined mimetype/servicetype 'text/x-c++'
kbuildsycoca: WARNING: '/opt/kde3.2-beta2/share/applications/kde/kuickshow.desktop' specifies undefined mimetype/servicetype 'image/x-psd'
kbuildsycoca: WARNING: '/opt/kde3.2-beta2/share/applications/kde/kuickshow.desktop' specifies undefined mimetype/servicetype 'image/x-eim'
kbuildsycoca: WARNING: 'vimpart.desktop' specifies undefined mimetype/servicetype 'text/english'
kbuildsycoca: WARNING: 'vimpart.desktop' specifies undefined mimetype/servicetype 'text/mathml'
kbuildsycoca: WARNING: 'vimpart.desktop' specifies undefined mimetype/servicetype 'text/richtext'
kbuildsycoca: WARNING: 'vimpart.desktop' specifies undefined mimetype/servicetype 'text/tab-separated-values'
kbuildsycoca: WARNING: 'vimpart.desktop' specifies undefined mimetype/servicetype 'text/x-authors'
kbuildsycoca: WARNING: 'vimpart.desktop' specifies undefined mimetype/servicetype 'text/x-c'
kbuildsycoca: WARNING: 'vimpart.desktop' specifies undefined mimetype/servicetype 'text/x-c++'
kbuildsycoca: WARNING: 'vimpart.desktop' specifies undefined mimetype/servicetype 'text/x-comma-separated-values'
kbuildsycoca: WARNING: 'vimpart.desktop' specifies undefined mimetype/servicetype 'text/x-copying'
kbuildsycoca: WARNING: 'vimpart.desktop' specifies undefined mimetype/servicetype 'text/x-credits'
kbuildsycoca: WARNING: 'vimpart.desktop' specifies undefined mimetype/servicetype 'text/x-csh'
kbuildsycoca: WARNING: 'vimpart.desktop' specifies undefined mimetype/servicetype 'text/x-dcl'
kbuildsycoca: WARNING: 'vimpart.desktop' specifies undefined mimetype/servicetype 'text/x-dsl'
kbuildsycoca: WARNING: 'vimpart.desktop' specifies undefined mimetype/servicetype 'text/x-dtd'
kbuildsycoca: WARNING: 'vimpart.desktop' specifies undefined mimetype/servicetype 'text/x-emacs-lisp'
kbuildsycoca: WARNING: 'vimpart.desktop' specifies undefined mimetype/servicetype 'text/x-gtkrc'
kbuildsycoca: WARNING: 'vimpart.desktop' specifies undefined mimetype/servicetype 'text/x-idl'
kbuildsycoca: WARNING: 'vimpart.desktop' specifies undefined mimetype/servicetype 'text/x-install'
kbuildsycoca: WARNING: 'vimpart.desktop' specifies undefined mimetype/servicetype 'text/x-perl'
kbuildsycoca: WARNING: 'vimpart.desktop' specifies undefined mimetype/servicetype 'text/x-python'
kbuildsycoca: WARNING: 'vimpart.desktop' specifies undefined mimetype/servicetype 'text/x-readme'
kbuildsycoca: WARNING: 'vimpart.desktop' specifies undefined mimetype/servicetype 'text/x-scheme'
kbuildsycoca: WARNING: 'vimpart.desktop' specifies undefined mimetype/servicetype 'text/x-setext'
kbuildsycoca: WARNING: 'vimpart.desktop' specifies undefined mimetype/servicetype 'text/x-sh'
kbuildsycoca: WARNING: 'vimpart.desktop' specifies undefined mimetype/servicetype 'text/x-sql'
kbuildsycoca: WARNING: '/opt/kde3.2-beta2/share/applications/kde/kpovmodeler.desktop' specifies undefined mimetype/servicetype 'KPovModeler/Document'
kbuildsycoca: WARNING: 'kivioconnectortool.desktop' specifies undefined mimetype/servicetype 'KPlugin'
kbuildsycoca: WARNING: 'kcertpart.desktop' specifies undefined mimetype/servicetype 'application/binary-certificate'
kbuildsycoca: WARNING: 'Multimedia/kaffeine.desktop' specifies undefined mimetype/servicetype 'video/x-avi'
kbuildsycoca: WARNING: 'Applications/kmymoney2.desktop' specifies undefined mimetype/servicetype 'text/x-kmymoney2'
kbuildsycoca: WARNING: '/usr/share/applications/fedora-xine.desktop' specifies undefined mimetype/servicetype 'audio/x-mp2'
kbuildsycoca: WARNING: '/usr/share/applications/net-xemacs.desktop' specifies undefined mimetype/servicetype 'text/english'
kbuildsycoca: WARNING: '/usr/share/applications/net-xemacs.desktop' specifies undefined mimetype/servicetype 'text/x-c'
kbuildsycoca: WARNING: '/usr/share/applications/net-xemacs.desktop' specifies undefined mimetype/servicetype 'text/x-c++'
kbuildsycoca: WARNING: '/usr/share/applications/net-xemacs.desktop' specifies undefined mimetype/servicetype 'text/english'
kbuildsycoca: WARNING: '/usr/share/applications/net-xemacs.desktop' specifies undefined mimetype/servicetype 'text/x-c'
kbuildsycoca: WARNING: '/usr/share/applications/net-xemacs.desktop' specifies undefined mimetype/servicetype 'text/x-c++'
kbuildsycoca: WARNING: 'kxsldbg_part.desktop' specifies undefined mimetype/servicetype 'text/english'
kbuildsycoca: WARNING: 'kxsldbg_part.desktop' specifies undefined mimetype/servicetype 'text/x-c'
kbuildsycoca: WARNING: 'kxsldbg_part.desktop' specifies undefined mimetype/servicetype 'text/x-c++'
kbuildsycoca: WARNING: 'kaboodleengine.desktop' specifies undefined mimetype/servicetype 'audio/x-mp2'
kbuildsycoca: WARNING: '/usr/share/applications/gnu-emacs.desktop' specifies undefined mimetype/servicetype 'text/english'
kbuildsycoca: WARNING: '/usr/share/applications/gnu-emacs.desktop' specifies undefined mimetype/servicetype 'text/x-c'
kbuildsycoca: WARNING: '/usr/share/applications/gnu-emacs.desktop' specifies undefined mimetype/servicetype 'text/x-c++'
kbuildsycoca: WARNING: '/usr/share/applications/gnu-emacs.desktop' specifies undefined mimetype/servicetype 'text/english'
kbuildsycoca: WARNING: '/usr/share/applications/gnu-emacs.desktop' specifies undefined mimetype/servicetype 'text/x-c'
kbuildsycoca: WARNING: '/usr/share/applications/gnu-emacs.desktop' specifies undefined mimetype/servicetype 'text/x-c++'
kbuildsycoca: WARNING: '/usr/share/applications/fedora-kplayer.desktop' specifies undefined mimetype/servicetype 'video/x-pn-realaudio'
kbuildsycoca: WARNING: '/usr/share/applications/fedora-kplayer.desktop' specifies undefined mimetype/servicetype 'application/x-pn-realaudio'
kbuildsycoca: WARNING: '/usr/share/applications/fedora-kplayer.desktop' specifies undefined mimetype/servicetype 'video/x-pn-realvideo'
kbuildsycoca: WARNING: '/usr/share/applications/fedora-kplayer.desktop' specifies undefined mimetype/servicetype 'audio/x-mp2'
kbuildsycoca: WARNING: '/usr/share/applications/fedora-kplayer.desktop' specifies undefined mimetype/servicetype 'video/x-mpegurl'
kbuildsycoca: WARNING: '/usr/share/applications/fedora-kplayer.desktop' specifies undefined mimetype/servicetype 'video/x-avi'
kbuildsycoca: WARNING: '/usr/share/applications/fedora-kplayer.desktop' specifies undefined mimetype/servicetype 'audio/x-ms-asf'
kbuildsycoca: WARNING: '/usr/share/applications/fedora-kplayer.desktop' specifies undefined mimetype/servicetype 'application/x-ms-asf'
kbuildsycoca: WARNING: '/usr/share/applications/fedora-kplayer.desktop' specifies undefined mimetype/servicetype 'audio/x-ms-wmp'
kbuildsycoca: WARNING: '/usr/share/applications/net-nedit.desktop' specifies undefined mimetype/servicetype 'text/english'
kbuildsycoca: WARNING: '/usr/share/applications/net-nedit.desktop' specifies undefined mimetype/servicetype 'text/x-c'
kbuildsycoca: WARNING: '/usr/share/applications/net-nedit.desktop' specifies undefined mimetype/servicetype 'text/x-c++'
kbuildsycoca: WARNING: '/usr/share/applications/net-tora.desktop' specifies undefined mimetype/servicetype 'application/x-tora'
kbuildsycoca: WARNING: 'kspreadcalc.desktop' specifies undefined mimetype/servicetype 'KPlugin'
kbuildsycoca: WARNING: '/opt/kde3.2-beta2/share/applications/kde/kmplayer.desktop' specifies undefined mimetype/servicetype 'audio/x-mp2'
kbuildsycoca: WARNING: '/opt/kde3.2-beta2/share/applications/kde/kmplayer.desktop' specifies undefined mimetype/servicetype 'video/x-avi'
kbuildsycoca: WARNING: 'katepart.desktop' specifies undefined mimetype/servicetype 'text/x-csharp-src'
kbuildsycoca: WARNING: 'katepart.desktop' specifies undefined mimetype/servicetype 'text/x-csharp-hde'
kbuildsycoca: WARNING: 'katepart.desktop' specifies undefined mimetype/servicetype 'text/x-eiffel-src'
kbuildsycoca: WARNING: 'katepart.desktop' specifies undefined mimetype/servicetype 'text/x-ferite-src'
kbuildsycoca: WARNING: 'katepart.desktop' specifies undefined mimetype/servicetype 'text/x-ilerpg-src'
kbuildsycoca: WARNING: 'katepart.desktop' specifies undefined mimetype/servicetype 'text/x-javascript'
kbuildsycoca: WARNING: 'katepart.desktop' specifies undefined mimetype/servicetype 'text/x-kbasic-src'
kbuildsycoca: WARNING: 'katepart.desktop' specifies undefined mimetype/servicetype 'text/mfile'
kbuildsycoca: WARNING: 'katepart.desktop' specifies undefined mimetype/servicetype 'text/x-sather-src'
kbuildsycoca: WARNING: 'katepart.desktop' specifies undefined mimetype/servicetype 'text/x-scheme'
kbuildsycoca: WARNING: 'katepart.desktop' specifies undefined mimetype/servicetype 'text/x-sql'
kbuildsycoca: WARNING: 'katepart.desktop' specifies undefined mimetype/servicetype 'text/x-verilog-src'
kbuildsycoca: WARNING: 'katepart.desktop' specifies undefined mimetype/servicetype 'text/x-vhdl'
kbuildsycoca: WARNING: 'katepart.desktop' specifies undefined mimetype/servicetype 'text/book'
kbuildsycoca: WARNING: 'kiviotexttool.desktop' specifies undefined mimetype/servicetype 'KPlugin'
kbuildsycoca: WARNING: 'kded/kcookiejar.desktop' specifies undefined mimetype/servicetype 'Daemon'
kbuildsycoca: WARNING: 'qeditor_part.desktop' specifies undefined mimetype/servicetype 'text/english'
kbuildsycoca: WARNING: 'qeditor_part.desktop' specifies undefined mimetype/servicetype 'text/x-c'
kbuildsycoca: WARNING: 'qeditor_part.desktop' specifies undefined mimetype/servicetype 'text/x-c++'
kbuildsycoca: WARNING: 'qeditor_part.desktop' specifies undefined mimetype/servicetype 'text/x-sql'
kbuildsycoca: WARNING: 'kaccess.desktop' specifies undefined mimetype/servicetype 'Daemon'
kbuildsycoca: WARNING: 'knotify.desktop' specifies undefined mimetype/servicetype 'KNotify'
kbuildsycoca: WARNING: 'kivioselecttool.desktop' specifies undefined mimetype/servicetype 'KPlugin'
kbuildsycoca: WARNING: '/usr/share/applications/kate.desktop' specifies undefined mimetype/servicetype 'text/english'
kbuildsycoca: WARNING: '/usr/share/applications/kate.desktop' specifies undefined mimetype/servicetype 'text/x-c'
kbuildsycoca: WARNING: '/usr/share/applications/kate.desktop' specifies undefined mimetype/servicetype 'text/x-c++'
kbuildsycoca: WARNING: '/usr/share/applications/kate.desktop' specifies undefined mimetype/servicetype 'text/english'
kbuildsycoca: WARNING: '/usr/share/applications/kate.desktop' specifies undefined mimetype/servicetype 'text/x-c'
kbuildsycoca: WARNING: '/usr/share/applications/kate.desktop' specifies undefined mimetype/servicetype 'text/x-c++'
kbuildsycoca: WARNING: '/usr/share/applications/kde-kmdr-editor.desktop' specifies undefined mimetype/servicetype 'text/kmdr'
kbuildsycoca: WARNING: 'kaboodle_component.desktop' specifies undefined mimetype/servicetype 'audio/x-mp2'
kbuildsycoca: WARNING: 'kiviozoomtool.desktop' specifies undefined mimetype/servicetype 'KPlugin'
kbuildsycoca: WARNING: '/usr/share/applications/redhat-word-processor.desktop' specifies undefined mimetype/servicetype 'application/x-doc'
kbuildsycoca: WARNING: 'kfile_koffice.desktop' specifies undefined mimetype/servicetype 'application/vnd.kde.kword'
kbuildsycoca: WARNING: 'kfile_koffice.desktop' specifies undefined mimetype/servicetype 'application/vnd.kde.kpresenter'
kbuildsycoca: WARNING: 'kfile_koffice.desktop' specifies undefined mimetype/servicetype 'application/vnd.kde.kspread'
kbuildsycoca: WARNING: 'kfile_koffice.desktop' specifies undefined mimetype/servicetype 'application/vnd.kde.karbon'
kbuildsycoca: WARNING: 'kfile_koffice.desktop' specifies undefined mimetype/servicetype 'application/vnd.kde.kontour'
Comment 1 David Faure 2003-12-19 14:26:40 UTC
>kivio and karbon display this problem, but not kword. 
>  
> koffice (lib kofficecore): ERROR: Couldn't find the native MimeType in kivio's desktop file. Check your installation ! 

1) Check for desktop files ~/.local/share/applications and move/remove any one that looks related (e.g. kivio.desktop or karbon.desktop). Then rerun kbuildsycoca and try again.

2) If that doesn't help, run the script from koffice/tools/scripts/check_koffice_install.sh after modifying the value of "instance" in the script, to the name of an app that won't start (e.g. kivio or karbon in your case). The script might detect an installation problem or a conflicting setting in ~/.kde/share/applnk.

HTH.
Comment 2 Neal Becker 2003-12-19 15:23:20 UTC
1. Nothing in ~/.local/share/applications except kde-kghostview.desktop
2. Results of check_koffice_install.sh:
. ./check_koffice_install.sh
Looking under applnk dir: /home/nbecker/.kde/share/applnk/
Looking under applnk dir: /opt/kde3.2-beta2/share/applnk/
Found: /opt/kde3.2-beta2/share/applnk/Office/kivio.desktop... ok, this is a KOfficePart
Native mimetype : X-KDE-NativeMimeType=application/x-kivio
Looking under applnk dir: /home/nbecker/.local/share/applications/
Looking under applnk dir: /opt/kde3.2-beta2/share/applications/
Looking under applnk dir: /usr/share/applications/

Service Types dir /home/nbecker/.kde/share/servicetypes/
Service Types dir /opt/kde3.2-beta2/share/servicetypes/
Found /opt/kde3.2-beta2/share/servicetypes/kofficepart.desktop
[PropertyDef::X-KDE-NativeMimeType]

Everything looks ok

3. kivio
kio (KSycoca): Trying to open ksycoca from /var/tmp/kdecache-nbecker/ksycoca
koffice (lib kofficecore): ERROR: Couldn't find the native MimeType in kivio's desktop file. Check your installation !
Comment 3 Neal Becker 2003-12-19 21:30:16 UTC
I moved /usr/share/applications/kde-kivio.desktop out of the way, and that fixed the problem.

Any way to get better diagnoistics so users don't have to guess what's the problem?
Comment 4 David Faure 2003-12-20 09:50:41 UTC
Please send me that /usr/share/applications/kde-kivio.desktop file
so that I can see which fields in it create the problem, then I'll be
able to check for such stuff in the script.
(Well it's time for a more robust solution in the first place...)
Comment 5 Nicolas Goutte 2004-05-08 15:13:41 UTC
KOffice 1.3.1 should have fixed such kinds of problems.

Have a nice day!