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

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

On 2013-09-17 22.09, Bruce Dubbs wrote:
> Why not just startx?  Is XDG_DATA_DIRS set properly when you bring up a 
> terminal (e.g. konsole) in KDE?  I think you need to check if you are 
> losing the environment when starting kdm.
> You've got the files.  It's just a matter of getting KDE to find them.
> Another thing to try:  Even if you get the messages, set
> XDG_DATA_DIRS again in konsole and then launch konqueror  from the 
> command line.
> I'm not 100% sure the environment variable is XDG_DATA_DIRS, but trying 
> different things from a konsole instance will help isolate what is 
> happening.
> Another idea, add a symlink:
> ln -s /usr/share/mime /opt/kde/share/usr-mime
> Not the right final solution, but it may give a clue.
>    -- Bruce

> Why not just startx?
Good point! Thank you! This works for me as root user and unprivileged user.
1) cat .xinitrc
 exec ck-launch-session dbus-launch --exit-with-session startkde
and then
2) export XDG_DATA_DIRS=/opt/kde/share:/usr/share
3) startx
4) works for me!

The /usr/share addition was they key for startx/.xinitrc to do the job.
Without /usr/share, startx fail to tart kde propery and I get the
original error.

The KDE Pre-installation Configuration only set XDG_DATA_DIRS=/opt/kde/share

> terminal (e.g. konsole)
I have not yet compiled konsole :-) I will do that.

KDM still misbehave, as before. I need to dig into kdmrc. It does not
seem to be configured correctly after building the kde packages.
Is that /opt/kde/share/config/kdm/kdmrc?


More information about the blfs-dev mailing list