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 ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 |
| |||
| 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 |
| |||
| 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 |
| |||
| "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 |
| |||
| 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 |
| ||||
| 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----- |