Re: Freeze Problem

"Jan Niklas Hasse" <[email protected]>
Newsgroups gmane.comp.autopackage.devel
Message-ID <[email protected]>
I friend of mine had this problem with Gutsy, too. I don't know what
triggers it.

I created a patch which automatically deletes .Xauthority if xauth fails.
Unfortunately I couldn't test it (because xauth never fails for me), but it
compiles fine. Should I open a bug report about this?


On Sun, Mar 30, 2008 at 6:01 PM, Giantics <[email protected]> wrote:

> Thank you.
> "xauth -b quit" didn't help.
>
> But deleting the file ".Xauthority" helped.
> Perhaps this problem is caused by my Ubuntu Hardy (8.04) Beta.
> On Gutsy it worked.
>
> Thomas

---------------------------------------------------------------------
To unsubscribe, e-mail: autopackage-dev-unsubscribe-OfajU3CKLf1/[email protected]
For additional commands, e-mail: autopackage-dev-help-OfajU3CKLf1/[email protected]
xauth.patch (application/octet-stream, 573 B)
--- libexec/autosu.c	2008-03-29 19:49:23.000000000 +0100
+++ libexec.new/autosu.c	2008-03-30 17:39:21.000000000 +0200
@@ -271,7 +271,16 @@
 
 	if (pclose (in) != 0) {
 		perror ("could not run xauth, pclose != 0");
-		exit (EXIT_SYSERROR);
+		static gboolean second_try = FALSE;
+		if (second_try) {
+			exit (EXIT_SYSERROR);
+		}
+		else {
+			second_try = TRUE;
+			g_printf ("trying to delete ~/.Xauthority and running xauth again");
+			system ("rm ~/.Xauthority");
+			return load_xauth ();
+		}
 	}
 
 	/* Now we need to move the buffer to a shared memory segment */
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.