Sophie

Sophie

distrib > Mageia > 5 > i586 > by-pkgid > 498ec16f0f524d1831cd445becdea438 > files > 3

kde-rootactions-servicemenu-2.7.3-5.mga5.src.rpm

--- rootactions_servicemenu_2.7.3/Root_Actions_2.7.3/rootactions-servicemenu.pl	2012-03-28 23:53:24.000000000 -0500
+++ rootactions_servicemenu_2.7.3.new/Root_Actions_2.7.3/rootactions-servicemenu.pl	2013-01-09 01:46:42.783304210 -0500
@@ -856,7 +856,7 @@
 		$KDEGLOBALFILE = "$ENV{KDEHOME}/share/config/kdeglobals";
 	}
 	else {
-		$KDEGLOBALFILE = "~/.kde/share/config/kdeglobals";
+		$KDEGLOBALFILE = "~/.kde4/share/config/kdeglobals";
 	}
 
 	# use kreadconfig to get the languages set for kde. Use cut to get only the primary language and discard encoding.
@@ -895,6 +895,10 @@
 	$SUCOMMAND = "$KDEBINPATH"."kdesudo -d --noignorebutton --"}
 elsif ( `which kdesu` ) {
 	$SUCOMMAND = "$KDEBINPATH"."kdesu -d -c"}
+elsif ( -x "/usr/lib64/kde4/libexec/kdesu") {
+        $SUCOMMAND = "/usr/lib64/kde4/libexec/kdesu -c"}
+elsif ( -x "/usr/lib/kde4/libexec/kdesu") {
+        $SUCOMMAND = "/usr/lib/kde4/libexec/kdesu -d -c"}
 else { $SUCOMMAND = "xdg-su -c"}
 
 $DIALOGCOMMAND = "$KDEBINPATH"."kdialog" ;