Please can you try whether "xhost +local:" before "gksu gnome-system-log"
does help for you ?

Yes, it works then.

Before:

$ gksu gnome-system-log
kvm_open: kvm_nlist: No such file or directory
No protocol specified

(gnome-system-log:8938): gnome-system-log-CRITICAL **: Unable to parse 
arguments: Cannot open display:
LibGTop-Server: pid 8949 received eof.

And gnome-system-log not displayed.

Then do:

$ xhost +local:
non-network local connections being added to access control list

After this gnome-system-log is displayed:

$ gksu gnome-system-log
kvm_open: kvm_nlist: No such file or directory
$ LibGTop-Server: pid 9202 received eof.


The attached patch fixes/workrounds it for me.

The problem is that for tty/pipes/sockets
the data might not be ready, but the code
in gksu-run-helper.c assumes that they are :-(

Petr
--- libgksu/gksu-run-helper.c~	2009-06-29 20:06:56.000000000 +0200
+++ libgksu/gksu-run-helper.c	2010-12-13 19:34:23.000000000 +0100
@@ -117,6 +117,13 @@
 
   GString *s = g_string_sized_new(255);
   read_gstring_from_stdin(s);
+  
+  if ( s->str[0] != 'g') /* should start with "gksu-run: ") */
+  {
+     s = g_string_truncate(s,0);
+     read_gstring_from_stdin(s);
+  }
+    
 
   /* strlen ("gksu-run: ") == 10, see su.c */
   xauth_display = g_strdup_printf ("%s", s->str + 10);

Reply via email to