You are not logged in.

#1 2011-10-14 22:21:40

sunnieside-up
Member
Registered: 2011-08-10
Posts: 58

[SOLVED] Terminal x apps do not work in GNOME

Hi all,

I just installed GNOME after already having XFCE, but in GNOME, the x apps launched from terminal do not work. I receive this error:

No protocol specified

(terminal:8918): Gtk-WARNING **: cannot open display: :0

I also tried export DISPLAY=:0.0, and that didn't work either. Any thoughts?

Last edited by sunnieside-up (2011-10-15 11:24:24)

Offline

#2 2011-10-14 23:06:51

sensei
Member
Registered: 2011-10-14
Posts: 35

Re: [SOLVED] Terminal x apps do not work in GNOME

xhost +local: 

Have you tried that?

http://www.backtrack-linux.org/forums/b … 0-0-a.html
I just did a google search, I'm not sure how to solve it but that might be of some help anyway.

Offline

#3 2011-10-14 23:19:23

sunnieside-up
Member
Registered: 2011-08-10
Posts: 58

Re: [SOLVED] Terminal x apps do not work in GNOME

doing that gives me an error:

xhost +local:
No protocol specified
xhost:  unable to open display ":0"

Last edited by sunnieside-up (2011-10-14 23:19:52)

Offline

#4 2011-10-14 23:36:25

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Terminal x apps do not work in GNOME

Maybe https://bbs.archlinux.org/viewtopic.php?id=122848 will help.
Are you trying to run these apps as root?

Offline

#5 2011-10-15 01:27:30

sunnieside-up
Member
Registered: 2011-08-10
Posts: 58

Re: [SOLVED] Terminal x apps do not work in GNOME

I'm just trying to run them as a normal user, but sudo [application] doesn't work either.

Offline

#6 2011-10-15 04:43:40

sonoran
Member
From: sonoran desert
Registered: 2009-01-12
Posts: 192

Re: [SOLVED] Terminal x apps do not work in GNOME

[me@mycomputer ~]$ echo $DISPLAY
:1

I've never deliberately changed this setting, so I assume it is the default for my Arch. Using single monitor, nvidia proprietary driver. Qingy and openbox.

Edit: Starting X on :1 rather than :0 appears to be a qingy feature, so if you're not using qingy it doesn't apply. Sorry.

Last edited by sonoran (2011-10-15 06:12:09)

Offline

#7 2011-10-15 11:16:22

sunnieside-up
Member
Registered: 2011-08-10
Posts: 58

Re: [SOLVED] Terminal x apps do not work in GNOME

Yeah, I tried that and it still didn't work. I also tried su -, then attempting to open an x app, but same results, it didn't work.

Offline

#8 2011-10-15 11:24:11

sunnieside-up
Member
Registered: 2011-08-10
Posts: 58

Re: [SOLVED] Terminal x apps do not work in GNOME

Oh I managed to solve the problem! I was exporting the XAUTHORITY variable to /home/(user)/.Xauthority for use with KDE before, but I guess that doesn't work with GNOME. So I removed it, and all is well!

Offline

Board footer

Powered by FluxBB