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

Allen Winter winter at kde.org
Wed Jan 9 14:14:42 GMT 2008


On Wednesday 09 January 2008 08:44:28 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). This
> can happen if you want to have a system where you can run both KDE4 and
> KDE3 session for the same user and you need to set different temporary
> directories.
>  The main problem lies in lnusertemp which has its own idea how a
> temporary directory should look like, completely ignoring what the user
> set up, and I didn't want to mess with it, so I rather simply changed
> the startkde script so it creates the temporary directories if they do
> not exist, just like it's done for the KDEHOME directory.
>
> Comments are welcome.
>
I have wanted to do something like this for a long time but have resisted
because I don't think the mkdir '-p' option is portable.

Or, maybe I'm just an old-timer and remember the old SunOS mkdir.
According to [1], the -p and -m options are required... so maybe I withdraw
any objections..

[1]
http://www.opengroup.org/onlinepubs/009695399/utilities/mkdir.html




More information about the kde-core-devel mailing list