[Goodies-commits] r4615 - in xfce4-smartpm-plugin/trunk: . src

Anders F Bjorklund afb at xfce.org
Fri Apr 18 17:25:52 CEST 2008


Author: afb
Date: 2008-04-18 15:25:52 +0000 (Fri, 18 Apr 2008)
New Revision: 4615

Modified:
   xfce4-smartpm-plugin/trunk/ChangeLog
   xfce4-smartpm-plugin/trunk/src/xfcesmart.c
Log:
look for smart-root in /usr/bin too

Modified: xfce4-smartpm-plugin/trunk/ChangeLog
===================================================================
--- xfce4-smartpm-plugin/trunk/ChangeLog	2008-04-18 06:03:47 UTC (rev 4614)
+++ xfce4-smartpm-plugin/trunk/ChangeLog	2008-04-18 15:25:52 UTC (rev 4615)
@@ -102,3 +102,7 @@
 
 	* add panel setting for using "su" vs. "sudo" for auth
 
+2008-04-18	Anders F Bjorklund <afb at users.sourceforge.net>
+
+	* look for smart-root in /usr/bin as well as /usr/sbin
+

Modified: xfce4-smartpm-plugin/trunk/src/xfcesmart.c
===================================================================
--- xfce4-smartpm-plugin/trunk/src/xfcesmart.c	2008-04-18 06:03:47 UTC (rev 4614)
+++ xfce4-smartpm-plugin/trunk/src/xfcesmart.c	2008-04-18 15:25:52 UTC (rev 4615)
@@ -690,6 +690,8 @@
     case PACKAGE_MANAGER_SMART:
       if (smart_program_exists("/usr/sbin/" SMART_SUIDBIN))
         program = g_strdup("/usr/sbin/" SMART_SUIDBIN);
+      else if (smart_program_exists("/usr/bin/" SMART_SUIDBIN))
+        program = g_strdup("/usr/bin/" SMART_SUIDBIN);
       else if (smart->su_instead_of_sudo && smart_program_exists(PATH_GKSU))
         program = g_strdup_printf("%s -- %s", PATH_GKSU, SMART_PROGRAM);
       else if (!smart->su_instead_of_sudo && smart_program_exists(PATH_GKSUDO))




More information about the Goodies-commits mailing list