[Goodies-commits] r3293 - xfce4-smartpm-plugin/trunk/src

Anders F Bjorklund afb at xfce.org
Thu Oct 4 14:39:50 CEST 2007


Author: afb
Date: 2007-10-04 12:39:50 +0000 (Thu, 04 Oct 2007)
New Revision: 3293

Modified:
   xfce4-smartpm-plugin/trunk/src/xfcesmart.c
Log:
use configured su/sudo paths

Modified: xfce4-smartpm-plugin/trunk/src/xfcesmart.c
===================================================================
--- xfce4-smartpm-plugin/trunk/src/xfcesmart.c	2007-10-04 12:36:01 UTC (rev 3292)
+++ xfce4-smartpm-plugin/trunk/src/xfcesmart.c	2007-10-04 12:39:50 UTC (rev 3293)
@@ -298,14 +298,14 @@
       terminal = FALSE;
       break;
     case PACKAGE_MANAGER_YUM:
-      argv[0] = "/bin/su";
+      argv[0] = PATH_SU;
       argv[1] = "-c";
       argv[2] = "\"" YUM_UPDATE " "\
                 "check-update" "\""; /* yum doesn't have a method to just update */
       terminal = TRUE;
       break;
     case PACKAGE_MANAGER_APT:
-      argv[0] = "/usr/bin/sudo";
+      argv[0] = PATH_SUDO;
       argv[1] = APT_UPDATE;
       argv[2] = "update";
       terminal = TRUE;




More information about the Goodies-commits mailing list