You are not logged in.

#1 2014-12-19 00:00:57

jmak
Member
Registered: 2008-12-21
Posts: 453

Gtk-WARNING **: cannot open display [Solved]

Hello,

I've just installed openbox and experimenting with it. But I'am unable to run any panel. Ive already install lxpanel, fbpanel, plank, but each time I try to launch them from the terminal I get the same error massages. Firefox, leafpad, terminal, all launch properly, only the panels I can't make them run. Any idea how to solve this?

[mak@myhost ~]$ fbpanel

(fbpanel:688): Gtk-WARNING **: cannot open display: 
[mak@myhost ~]$ 
[mak@myhost ~]$ plank
[INFO 19:09:21.484514] [AbstractMain:170] Plank version: 0.7.1
[INFO 19:09:21.484627] [AbstractMain:171] Kernel version: 3.17.6-1-ARCH
[INFO 19:09:21.484704] [AbstractMain:172] GLib version: 2.42.1
[INFO 19:09:21.484784] [AbstractMain:173] GTK+ version: 3.14.6
[INFO 19:09:21.484850] [AbstractMain:175] + HiDPI support enabled
[INFO 19:09:21.484915] [AbstractMain:177] Wnck version: 3.4.9
[INFO 19:09:21.485001] [AbstractMain:178] Cairo version: 1.14.0
[INFO 19:09:21.485081] [AbstractMain:179] Pango version: 1.36.8
Unable to init server: Could not connect: Connection refused
[WARN 19:09:21.493039] [Gtk] cannot open display: 
[mak@myhost ~]$ 

Last edited by jmak (2014-12-19 00:25:02)

Offline

#2 2014-12-19 00:24:33

jmak
Member
Registered: 2008-12-21
Posts: 453

Re: Gtk-WARNING **: cannot open display [Solved]

I found this solution on Ubuntu forum.

The only thing I had to do  put this command

export DISPLAY=:0.0

in bashrc file.

Now, my panels are up and running.

Offline

#3 2014-12-19 00:37:58

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

Re: Gtk-WARNING **: cannot open display [Solved]

The display should be set on its own. It's

$ echo $DISPLAY
:0

for my first X server and

$ echo $DISPLAY
:1

for the other one I'm running.
How exactly do you start X?

Offline

#4 2014-12-19 04:23:40

jmak
Member
Registered: 2008-12-21
Posts: 453

Re: Gtk-WARNING **: cannot open display [Solved]

karol wrote:

The display should be set on its own. It's

$ echo $DISPLAY
:0

for my first X server and

$ echo $DISPLAY
:1

for the other one I'm running.
How exactly do you start X?

I start manually,

startx

Offline

#5 2017-12-23 20:17:29

Bhall6518
Member
Registered: 2017-12-23
Posts: 1

Re: Gtk-WARNING **: cannot open display [Solved]

I know this may be a tad off topic but it helped me and if anyone else stumbles onto this I want them to know it works. If your trying to open spotify via a terminal or it just doesn't open type "sudo startx" in a terminal and it should launch a root session and from there you can open spotify. Personally i'm using Parrot OS which is based off debian but this command works.

Offline

#6 2017-12-23 21:13:39

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 26,081
Website

Re: Gtk-WARNING **: cannot open display [Solved]

There are so many things wrong with this comment:

1. It is necrobumping a solved thread: https://wiki.archlinux.org/index.php/Co … bumping.22
2. "sudo startx" is just fucking stupid
3. ParrotOS? https://wiki.archlinux.org/index.php/Co … pport_ONLY


Closing


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB