Sophie

Sophie

distrib > Mandriva > 2006.0 > i586 > media > main-src > by-pkgid > a6bc312ce50b5c8d0c51736e58ac32bc > files > 287

kdebase-3.4.2-55mdk.src.rpm

--- kdebase-3.2.3/kdesktop/init.cc--	2004-08-18 09:59:43.189422121 +0200
+++ kdebase-3.2.3/kdesktop/init.cc	2004-08-18 11:15:05.959763011 +0200
@@ -189,6 +189,22 @@ void testLocalInstallation()
     testDir( trashPath );
     copyDirectoryFile("directory.trash", trashPath, newRelease); // for trash icon
 
+    QString directoryPath = desktopPath+"/.directory";
+    QDir directoryTrash( desktopPath );
+    QDir tmpTrash( trashPath );
+    //kdDebug()<<"directoryPath :"<<directoryPath<<endl;
+    if(directoryTrash.exists() )
+      {
+	//kdDebug()<<" directory trash exist !!!!!!!!!!!!!\n";
+	KSimpleConfig *conf = new KSimpleConfig( directoryPath );
+	QString groupName = "IconPosition::" + tmpTrash.dirName(); 
+	//kdDebug()<<"create groupName :"<<groupName<<endl;
+	conf->setGroup(groupName);
+	conf->writeEntry("X", "-30");
+	conf->writeEntry("Y", "-160");
+	conf->sync();
+	delete conf;
+      }
     testDir( KGlobalSettings::autostartPath() );
     // we force the copying in case of a new release, to install new translations....
     copyDirectoryFile("directory.autostart", KGlobalSettings::autostartPath(), newRelease);