[blfs-dev] Kde 4.11.1 can not find mime data

Magnus Larsson k.magnus.larsson at tele2.se
Tue Sep 17 11:16:24 PDT 2013


Hello blfs-dev at linuxfromscratch.org

Kde 4.11.1 can not find mime data when staring session using kdm,

I have Xorg-7.7 server and QT-4.85 on a LinuxFromScratch (lfs) system.
Both the xserver and qt work well.

uname -a
Linux lfs 3.10.1 #6 SMP Sat Sep 14 18:20:45 CEST 2013 x86_64 GNU/Linux

I want a running kde4 code base. I have built a basic kde4 system using
the blfs build instructions
http://www.linuxfromscratch.org/blfs/view/svn/kde/kde.html.

I fulfil the prerequisites and I can cmake, make and make install KDE4
source without problem.

Problem:
When I execute /opt/kde/bin/kdm and log in to start a kde4 session I get
a couple of pop up window stating:
-Error Run Command Interface
Could not find mime types:
"inode/directory"
"inode/blockdevice"
"inode/chardevice"
"inode/socket"
"inode/fifo"
"application/x-shellscript"
"application/x-executable"
"application/x-desktop"

"Could not find mime type application/octet-stream"

The desktop is started, but any application will (file manager or web
browser) will complain in the same way (as above) with the errors listed.

The .xsession-errors file can be found below. (I kill kdm process
manually by command at the end).
http://filebin.net/qeavbvy53g/xsession-errors.txt.
There is an entry about mimeType "inode/directory" not found.

cat .xsession-errors | grep mime
plasma-desktop(3594)/kdecore (trader) mimeTypeSycocaOffers:
KMimeTypeTrader: mimeType "inode/directory" not found
akonadi.collectionmimetyperelation                 OK
akonadi.mimetypetable                              OK
krunner(3653) KMimeTypePrivate::ensureXmlDataLoaded:
("/home/magnus/.local/share/mime/", "/opt/kde/share/mime/")
dolphin(3751) KMimeTypePrivate::ensureXmlDataLoaded:
("/home/magnus/.local/share/mime/", "/opt/kde/share/mime/")
dolphin(3776) KMimeTypePrivate::ensureXmlDataLoaded:
("/home/magnus/.local/share/mime/", "/opt/kde/share/mime/")

I have tried kbuildsycoca4 --noincremental, from outside kde, but it
does not help. Same with update-desktop-database.
kbuildsycoca4 --noincremental
kbuildsycoca4 running...
kbuildsycoca4(3799)/kdecore (services) KServicePrivate::init: The
desktop entry file  "unnamed.desktop"  has Type= "Link"  instead of
"Application" or "Service"
kbuildsycoca4(3799) KBuildServiceFactory::createEntry: Invalid Service :
 "unnamed.desktop"

update-desktop-database -v
Search path is now: [/opt/kde/share/applications,
/usr/local/share/applications, /usr/share/applications]
File "/opt/kde/share/applications/kde4/nepomukcleaner.desktop" lacks
MimeType key
<....simular...>
File "/usr/share/applications/assistant-qt4.desktop" lacks MimeType key

I have share-mime-info-1.1 installed,

env | grep XDG
XDG_CONFIG_DIRS=/etc/kde/xdg
XDG_DATA_DIRS=/opt/kde/share

There must be something fundamental I have missed. I have the code and I
can reconfigure and rebuild if needed, but so far nothing helps. Is
there an error in a configuration file or a shell variable?

At Kde-devel I got some feedback to modify my XDG shell variables to the
below, but no change:
XDG_CONFIG_DIRS=/etc/kde/xdg:/etc/xdg
XDG_DATA_DIRS=/opt/kde/share:/usr/local/share/:/usr/share/
http://lists.kde.org/?l=kde-devel&m=137935584715787&w=2

Please advice. Thank you.

Best regards,

Magnus Larsson



More information about the blfs-dev mailing list