Sophie

Sophie

distrib > Mandriva > 2007.1 > i586 > by-pkgid > 957da2639ff0ff03ed8e388494a58800 > files > 111

kdebase4-3.80.3-0.20070311.6mdv2007.1.src.rpm

--- kdebase-3.5.0/kicker/menuext/kdeprint/print_mnu.cpp--	2005-12-19 10:51:27.000000000 +0100
+++ kdebase-3.5.0/kicker/menuext/kdeprint/print_mnu.cpp	2005-12-19 10:52:50.000000000 +0100
@@ -26,6 +26,7 @@
 #include <klocale.h>
 #include <kglobal.h>
 #include <kapplication.h>
+#include <kstandarddirs.h>
 #include <krun.h>
 #include <kdeprint/kmmanager.h>
 #include <qregexp.h>
@@ -112,7 +113,12 @@
 	    kapp->kdeinitExec("kaddprinterwizard", QStringList("--serverconfig"));
 	    break;
         case PRINT_MANAGER_ID:
-            KRun::runCommand("kcmshell kde-printers.desktop");
+		{
+            if( KStandardDirs::default_menu_type_by_version()=="kde")
+                KRun::runCommand("kcmshell kde-printers.desktop");
+            else
+                KRun::runCommand("kcmshell printers.desktop");
+		}
             break;
         case PRINT_BROWSER_ID:
             KRun::runCommand("kfmclient openProfile filemanagement print:/", "kfmclient", "konqueror");