Package: mozilla-firefox
Version: 1.5.dfsg+1.5.0.4-1
Using sudo to launch firefox under a specific uid fails with the
following message :
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
(firefox-bin:1288): Gtk-WARNING **: cannot open display: :0.0
This is due to the X11 cookie not being transferred to the new home
directory. Even if this is fixable by a wrapper around firefox, the
original script still needs to set XAUTHORITY.
As /usr/lib/firefox/firefox already handles sudo, I think this
issue should be addressed. The patch below fixes the problem by setting
XAUTHORITY right after the eventual modification of HOME.
--- firefox.orig 2006-11-01 15:18:15.000000000 +0100
+++ firefox 2006-11-01 15:19:17.000000000 +0100
@@ -33,6 +33,9 @@
echo "Could not find the correct home directory. Please
use the -H option of sudo." >&2 fi
fi
+
+ XAUTHORITY=${HOME}/.Xauthority
+ export XAUTHORITY
fi
##
Simon
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]