Bug 320966

Summary: after login, the K-Menues are not filled; Kmail doesn't work properly...
Product: [Frameworks and Libraries] kdelibs Reporter: Unknown <null>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED NOT A BUG    
Severity: normal CC: faure
Priority: NOR    
Version: Git   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: kmail-configure (empty) window
KDE-Start-Applications (empty) window
open with window

Description Unknown 2013-06-09 17:24:25 UTC
after login, the K-Menues are not filled.
With kmail, I cannot "Configure Kmail...", the window is empty.
If I use a http-link from a kmail-message, I need to specify (again) "firefox".
If I use the dolphin-link after inserting an USB-Memory, I need to specify (again) "dolphin".

Running kbuildsycoca4 at a konsole fix the problems!
What is the problem?

Reproducible: Always
Comment 1 Unknown 2013-06-12 16:44:55 UTC
Created attachment 80483 [details]
kmail-configure (empty) window
Comment 2 Unknown 2013-06-12 16:46:07 UTC
Created attachment 80484 [details]
KDE-Start-Applications (empty) window
Comment 3 Unknown 2013-06-12 16:47:23 UTC
Created attachment 80485 [details]
open with window
Comment 4 David Faure 2013-06-13 11:10:04 UTC
Sounds like your KDE session is starting with a wrong environment. Check $KDEDIRS and $XDG_DATA_DIRS in particular. Not in your shell (which seems correctly setup), but at the time of startkde.
Check for scripts in $KDEHOME/env/*.sh which would affect KDEDIRS and XDG_DATA_DIRS.
Use /proc/PID/environ to check the environment as seen by kded4 (which is the one launching kbuildsycoca).
Comment 5 Unknown 2013-06-13 16:04:41 UTC
How to do "but at the time of startkde"?
what should itbe?
$KDEHOME is not set
% cat /proc/PID/environ
gives:
LD_BIND_NOW=true
XDG_VTNR=7
XDG_SESSION_ID=1
DM_CONTROL=/var/run/xdmctl
SHELL=/bin/bash
XDM_MANAGED=method=classic
GS_LIB=/home/guy/.fonts
GTK_MODULES=canberra-gtk-module
KDE_FULL_SESSION=true
USER=guy
MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins
PATH=/usr/lib/qt4/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/core_perl
MAIL=/var/spool/mail/guy
DESKTOP_SESSION=default
PWD=/home/guy
JAVA_HOME=/usr/lib/jvm/java-7-openjdk
KDE_SESSION_UID=1000
LANG=C
HOME=/home/guy
XDG_SEAT=seat0
SHLVL=1
KDE_SESSION_VERSION=4
XCURSOR_THEME=Oxygen_White
LOGNAME=guy
XDG_DATA_DIRS=/usr/share:/usr/share:/usr/local/share
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-BVeX8xp2jW,guid=d84b6e3565d6f183b62a7be851b9f963
WINDOWPATH=7
DISPLAY=:0
XDG_RUNTIME_DIR=/run/user/1000
QT_PLUGIN_PATH=/home/guy/.kde/lib/kde4/plugins/:/usr/local/lib/kde4/plugins/:/usr/local/lib/plugins/
XDG_CURRENT_DESKTOP=KDE
_=/usr/lib/kde4/libexec/start_kdeinit_wrapper

Thanks
Comment 6 David Faure 2013-06-14 17:37:01 UTC
$KDEHOME is short hand for ~/.kde, if it's not set. So, I meant ~/.kde/env/*.sh -- which is one way to set up env vars so that they will be seen by KDE startup, when using non-standard install prefixes.

Pasting your env vars doesn't tell me much, I don't know your setup (where KDE is installed, etc.)

Please come to IRC for support, kde-core-devel or bugzilla are really not convenient for this (it doesn't look like a bug, but like a setup issue).
Comment 7 Unknown 2013-06-18 18:15:20 UTC
I cannot yet come to IRC, because look under.
The problem seams to be a mix of programs I have compiled and installed under /usr/local/bin
(kmail) and some I get over packages from ArchLinux (kdm).
Changing the start of kdm.service to /usr/local/bin/kdm provides a little solution:
The "Configure Kmail" window is complete, the command menĂ¼ filled.
But, inserting a USB-Stick doesn't produce any notification, and by using kopete, the "Configure" window (such as kmail before) is empty.
Is it possible to do such a mix?
If yes, what do I need to set before?

If one doesn't set that, could it be possible to generate an appropriate error message?
I would like to write some code for this. Where happens the problem?
Comment 8 Unknown 2013-12-17 17:37:43 UTC
cann't reproduce anymore