That should be because the shells in the screen sessions are authorized for
the original X session, but not the new one.  Usually using "xauth merge
~/.Xauthority" or whatever file contains your x authority information should
work.  Unfortunately you'll have to do that in each shell inside screen
though.

On Thu, Jun 25, 2009 at 11:57 AM, David Collins
<davidcollins...@gmail.com>wrote:

> Hi,
>
> I use 5 different screen sessions for various different purposes on my
> work computer (linux open suse). When the X server is restarted and I
> re-attach the screen sessions I can no longer open programs that use
> X. The error I get is "cannot open display :0.0" The xterm without the
> screen session running can open an X app just fine.
>
> Does anyone have any ways that I can stop this happening, usually it
> isn't a problem but on the occsation it does happen I have to restart
> the screen session.
>
> Thanks
> David
>
>
> _______________________________________________
> screen-users mailing list
> screen-users@gnu.org
> http://lists.gnu.org/mailman/listinfo/screen-users
>

--
Tom Scogland
"When in doubt, use brute force"
-- Ken Thompson
_______________________________________________
screen-users mailing list
screen-users@gnu.org
http://lists.gnu.org/mailman/listinfo/screen-users

Reply via email to