Unix Technical Forum

X apps don't launch from Xterm

This is a discussion on X apps don't launch from Xterm within the Debian Linux Users forum forums, part of the Debian Linux category; --> This is a stable install that has been running, er, with great stability, for well over a year; it ...


Go Back   Unix Technical Forum > Unix Operating Systems > Debian Linux > Debian Linux Users forum

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-27-2008, 11:06 AM
Eric d'Alibut
 
Posts: n/a
Default X apps don't launch from Xterm

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.

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

Has some X policy been put into place? Where to reverse it?


Best,

--
No no no, my fish's name is Eric, Eric the fish. He's an halibut. I am
not a looney! Why should I be tarred with the epithet looney merely
because I have a pet halibut?


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-27-2008, 11:06 AM
Tzafrir Cohen
 
Posts: n/a
Default 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


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-27-2008, 11:06 AM
Eric d'Alibut
 
Posts: n/a
Default X apps don't launch from Xterm

On Wed, Jun 25, 2008 at 3:34 PM, Tzafrir Cohen <tzafrir@cohens.org.il> wrote:

> What is the output of the following two:


> echo $DISPLAY


As noted:

$ echo $DISPLAY
0:0.

> xlsclients


$ xlsclients
xlsclients: unable to open display "0:0."

What scripts might be monkeying with xauth?

--
No no no, my fish's name is Eric, Eric the fish. He's an halibut. I am
not a looney! Why should I be tarred with the epithet looney merely
because I have a pet halibut?


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-27-2008, 11:06 AM
Cameron Hutchison
 
Posts: n/a
Default Re: X apps don't launch from Xterm

"Eric d'Alibut" <eric.halibut@gmail.com> writes:

>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.


That DISPLAY variable is wrong. It should be :0.0

If you can launch an xterm, then at that point in time $DISPLAY must be
correct. Once at the command line, it is wrong though. I would be looking
in your .bashrc or equivalent shell rc file (if you use a different shell)
and see if you have any manipulation of $DISPLAY in there.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 06-27-2008, 11:06 AM
Eric d'Alibut
 
Posts: n/a
Default Re: X apps don't launch from Xterm

On Wed, Jun 25, 2008 at 9:03 PM, Cameron Hutchison <lists@xdna.net> wrote:

>>wingnut@trollboy:~$ echo $DISPLAY
>>0:0.


> That DISPLAY variable is wrong. It should be :0.0

Bingo. You get the Eagle Eye Award!

Sure enough, and Lord Only Knows why, I had put an 'export
DISPLAY=0:0.' into my .bashrc. Pilot error. Duh.


Best,

--
No no no, my fish's name is Eric, Eric the fish. He's an halibut. I am
not a looney! Why should I be tarred with the epithet looney merely
because I have a pet halibut?


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 07-01-2008, 07:01 PM
Michelle Konzack
 
Posts: n/a
Default Re: X apps don't launch from Xterm

Am 2008-06-25 14:05:45, schrieb Eric d'Alibut:
> 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.


??? -- This should be ":0.0"

Try to run

DISPLAY=:0.0 gqview

which should work.

Thanks, Greetings and nice Day/Evening
Michelle Konzack
Systemadministrator
24V Electronic Engineer
Tamay Dogan Network
Debian GNU/Linux Consultant


--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
+49/177/9351947 50, rue de Soultz MSN LinuxMichi
+33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFIZxzPC0FPBMSS+BIRAkYTAJ9WK9hllW1YAhbOktmXDJ wf81DdLACfdiTT
uc4IfhgoWrqJ72gz2d3nwYA=
=zbgL
-----END PGP SIGNATURE-----

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:02 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com