[PATCH] Make startkde work with not-default KDETMP and KDEVARTMP

David Faure faure at kde.org
Wed Jan 9 14:50:43 GMT 2008


On Wednesday 09 January 2008, Andras Mantia wrote:
> On Wednesday 09 January 2008, David Faure wrote:
> > On Wednesday 09 January 2008, Andras Mantia wrote:
> > > Hi,
> > >
> > >  right now if you set KDETMP and KDEVARTMP to a non-existing
> > > directory, startup of KDE will fail (lnusertemp cannot create the
> > > directory).
> >
> > Actually, this only happens if you set them to a non-existing
> > directory inside a non-existing directory, no? If you set them to
> > /tmp/foo it works, if you set them to /tmp/doesnotexist/foo it
> > doesn't work. This is a corner case that is IMHO a configuration bug
> > and not worth the risk of an unportable call. It's just that many
> > people hit that bug in the past due to a wrong recommendation in the
> > wiki page (from me, but it's all coolo's fault initially :-).
> 
> Unfortunately not. Here is what I do:
> case "$WINDOWMANAGER" in
>  *kde4*) export KDEHOME=$HOME/.kde4
>          export KDETMP=/tmp/kde4-`whoami`
>          export KDEVARTMP=/var/tmp/kdecache4-`whoami`
> esac
> 
> (this is in .xinitrc to set the variables if I run a KDE4 session).
> 
> If /tmp/kde4-user and /var/tmp/kdecache4-user does not exists, it will 
> not start up.

Isn't there a ::mkdir() call inside lnusertemp itself?

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kde-core-devel mailing list