On Fri, 2007-02-23 at 12:03 +0000, Michael Graham wrote:
> In gnome Desktop->Administration menu it is possible to switch the 
> behaviour of apps that need admin privledges via the gconf setting 
> /apps/gksu/sudo-mode between requesting the root password or the user 
> password. However the clock applet calls time-admin dirrectly which then 
> requests the root password. This is inconvenient for those of us that 
> prefer the sudo method.
> 
> The fairly trivial patch from ubuntu is attached. Please note that the 
> patch it dropped in gnome-panel 2.15.91 since "the new 
> gnome-system-tools don't need special rights from the UI".

This is still needed with gnome-panel 2.18 and gnome-system-tools 2.18.
I'm attaching the patch currently used by Ubuntu, is it okay to commit?

gnome-applets, gnome-nettool and other packages calling
gnome-system-tools seems to already use gksu, or have already been
patched, leaving only gnome-panel.

-- 
Cheers,
Sven Arvidsson
http://www.whiz.se
PGP Key ID 760BDD22
diff -Nur gnome-panel-2.16.1/applets/clock/clock.c gnome-panel-2.16.1.new/applets/clock/clock.c
--- gnome-panel-2.16.1/applets/clock/clock.c	2006-12-05 16:43:37.000000000 +0100
+++ gnome-panel-2.16.1.new/applets/clock/clock.c	2006-12-05 16:44:06.000000000 +0100
@@ -83,7 +83,7 @@
 	"system-config-date",
 	"redhat-config-date",
         "/sbin/yast2 timezone",
-	"time-admin",
+	"gksu time-admin",
 };
 
 /* Needs to match the indices in the combo */

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to