[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: X apps don't launch from Xterm



On Wed, Jun 25, 2008 at 02:05:45PM -0400, Eric d'Alibut wrote:
> This is a stable install that has been running, er, with great
> stability, for well over a year; it was brought up to date with etch
> no problemo earlier in the year. A recent routine 'apt-get update',
> 'apt-get upgrade' has left me with some new, and rather disagreeable,
> behaviour.
> 
> This box boots to a command prompt, and then after logging in as a
> regular user I launch X with a simple 'startx.' This gets me Gnome. If
> I then start an xterm and attempt to launch an X app, such as gqview,
> or evince, from the command prompt in that xterm, no app launches;
> this is what I get:
> 
> --snip--
> 
> wingnut@trollboy:~$ gqview
> (gqview:26337): Gtk-WARNING **: cannot open display:
> 
> wingnut@trollboy:~$ evince
> (evince:28047): Gtk-WARNING **: cannot open display:
> 
> wingnut@trollboy:~$ echo $DISPLAY
> 0:0.
> 
> --snip--
> 
> As you can see, the display id is available in the environment.
> 

I figure you somehow override the DISPLAY settings or the xauth settings
in your shell startup scripts.

What is the output of the following two:

  echo $DISPLAY
  xlsclients




> Also, setting 'xhost +' in a .xinitrc file does not affect this behaviour.

This should not be required.

-- 
Tzafrir Cohen         | tzafrir@jabber.org | VIM is
http://tzafrir.org.il |                    | a Mutt's
tzafrir@cohens.org.il |                    |  best
ICQ# 16849754         |                    | friend


Reply to: