[Goodies-commits] r4588 - xfce4-smartpm-plugin/trunk/src
Anders F Bjorklund
afb at xfce.org
Wed Apr 16 11:55:33 CEST 2008
Author: afb
Date: 2008-04-16 09:55:33 +0000 (Wed, 16 Apr 2008)
New Revision: 4588
Modified:
xfce4-smartpm-plugin/trunk/src/xfcesmart.c
Log:
use new su/sudo setting for smart
Modified: xfce4-smartpm-plugin/trunk/src/xfcesmart.c
===================================================================
--- xfce4-smartpm-plugin/trunk/src/xfcesmart.c 2008-04-16 09:52:07 UTC (rev 4587)
+++ xfce4-smartpm-plugin/trunk/src/xfcesmart.c 2008-04-16 09:55:33 UTC (rev 4588)
@@ -690,7 +690,9 @@
case PACKAGE_MANAGER_SMART:
if (smart_program_exists("/usr/sbin/" SMART_SUIDBIN))
program = g_strdup("/usr/sbin/" SMART_SUIDBIN);
- else if (smart_program_exists(PATH_GKSUDO))
+ 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))
program = g_strdup_printf("%s -- %s", PATH_GKSUDO, SMART_PROGRAM);
else
program = g_strdup(SMART_PROGRAM);
More information about the Goodies-commits
mailing list