--- kdebase-3.5.1/kdesktop/init.cc.orig 2006-02-07 15:46:37.000000000 -0500 +++ kdebase-3.5.1/kdesktop/init.cc 2006-02-07 15:50:50.000000000 -0500 @@ -198,6 +198,13 @@ copyDirectoryFile("directory.desktop", desktopPath, false); testDir( KGlobalSettings::autostartPath() ); + + const QString envPathDir = QDir::homeDirPath() + "/.kde/env/"; + const QString shutDownPathDir = QDir::homeDirPath() + "/.kde/shutdown/"; + //Create env/shutdown directory + testDir( envPathDir ); + testDir( shutDownPathDir ); + // we force the copying in case of a new release, to install new translations.... copyDirectoryFile("directory.autostart", KGlobalSettings::autostartPath(), newRelease); @@ -225,7 +232,18 @@ trashDesktop.sync(); } } - + + QDir tmp("/usr/share/mdk/kde/scripts/env/"); + QStringList lst = tmp.entryList(QDir::Files); + for (QStringList::ConstIterator it = lst.begin(); it != lst.end(); it++) { + copyFile( tmp.path() + "/" +*it, envPathDir ); + } + tmp = QDir("/usr/share/mdk/kde/scripts/shutdown/"); + lst = tmp.entryList(QDir::Files); + for (QStringList::ConstIterator it = lst.begin(); it != lst.end(); it++) { + copyFile( tmp.path() + "/" +*it, shutDownPathDir ); + } + if ( firstTimeWithNewTrash ) { // migrate pre-kde-3.4 trash contents QByteArray packedArgs; QDataStream stream( packedArgs, IO_WriteOnly );