Bug 320966 - after login, the K-Menues are not filled; Kmail doesn't work properly...
Summary: after login, the K-Menues are not filled; Kmail doesn't work properly...
Status: RESOLVED NOT A BUG
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: Git
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-09 17:24 UTC by Unknown
Modified: 2013-12-17 17:37 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
kmail-configure (empty) window (37.14 KB, image/jpeg)
2013-06-12 16:44 UTC, Unknown
Details
KDE-Start-Applications (empty) window (70.72 KB, image/jpeg)
2013-06-12 16:46 UTC, Unknown
Details
open with window (27.09 KB, image/jpeg)
2013-06-12 16:47 UTC, Unknown
Details

Note You need to log in before you can comment on or make changes to this bug.
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