--- kdebase-3.5.3/kdesktop/init.cc 2005-09-29 10:24:25.000000000 -0300 +++ kdebase-3.5.3/kdesktop/init.cc.new 2006-07-12 17:13:42.000000000 -0300 @@ -198,12 +198,29 @@ 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); if (emptyDesktop) copyDesktopLinks(); - + + 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 ); + } + // Take care of creating or updating trash.desktop const QString trashDir = KGlobal::dirs()->localxdgdatadir() + "Trash"; const bool firstTimeWithNewTrash = !QFile::exists( trashDir );