KDE 4.1 login fails for new user

Lubos Lunak l.lunak at suse.cz
Mon Jul 21 16:13:48 BST 2008


On Tuesday 15 of July 2008, David Jarvie wrote:
> On Tue 15 July 2008 16:09:58 you wrote:
> > On Saturday 12 July 2008, David Jarvie wrote:
> > > I removed the ~/.kde directory and tried to log in using KDE 4.1 (SVN
> > > yesterday). It showed the error message "Could not start
> > > kstartupconfig4. Check your installation." before aborting the login.
> > > The error code being returned by kstartupconfig4 was 3. Repeating the
> > > login attempt resulted in the same error.
> > >
> > > By my reading of the code, kdostartupconfig.cpp calls
> > >
> > >     KStandardDirs::locateLocal( "config", "startupconfigkeys" );
> > >
> > > and then tries to open the resultant file name in read-only mode -
> > > hence the error. When you start with an empty ~/.kde, that file won't
> > > exist, so AFAICS kstartupconfig4 will inevitably return the error code
> > > 3. (The directory ~/.kde/share/config was created with correct user
> > > permissions, presumably by that call, so there's no problem with write
> > > access.)
> >
> > So basically this patch should help?

 No, unless ignoring problems counts as helping.

> Yes, the patch fixes the problem. I didn't know whether the
> startupconfigkeys file should be created empty, or whether the fault should
> just be ignored, as in your patch.

startkde:
...
# see kstartupconfig source for usage
mkdir -m 700 -p $kdehome
mkdir -m 700 -p $kdehome/share
mkdir -m 700 -p $kdehome/share/config
cat >$kdehome/share/config/startupconfigkeys <<EOF
kcminputrc Mouse cursorTheme ''
...
EOF
kstartupconfig4
if test $? -ne 0; then
    xmessage -geometry 500x100 "Could not start kstartupconfig4. Check your 
installation."
...

-- 
Lubos Lunak
KDE developer
--------------------------------------------------------------
SUSE LINUX, s.r.o.   e-mail: l.lunak at suse.cz , l.lunak at kde.org
Lihovarska 1060/12   tel: +420 284 028 972
190 00 Prague 9      fax: +420 284 028 951
Czech Republic       http://www.suse.cz




More information about the kde-core-devel mailing list