Blob Blame History Raw
--- gnome-panel-2.18.0/gnome-panel/panel-util.c.hide-menu-if-root	2007-03-30 12:35:38.000000000 -0400
+++ gnome-panel-2.18.0/gnome-panel/panel-util.c	2007-03-30 12:39:28.000000000 -0400
@@ -780,6 +780,12 @@
 
 	g_return_val_if_fail (action != NULL, FALSE);
 
+        /* Neither gnome-screensaver or xscreensaver allow root
+         * to lock the screen
+         */
+        if ((strcmp (action, "lock") == 0) && (geteuid () == 0))
+          return FALSE;
+       
 	command = panel_lock_screen_action_get_command (action);
 	if (command)
 		enabled = TRUE;