You are not logged in.

#1 2018-01-13 09:12:29

thanosfrag
Member
Registered: 2017-11-06
Posts: 5

Gtk-WARNING **: cannot open display: :0 [solved]

Hi guys, I am running Arch Linux with GNOME on my laptop. I was trying to configure my battery settings ( /etc/UPower/UPower.conf) following the instructions (https://wiki.archlinux.org/index.php/GN … E_Sessions). However, I get the following error:

No protocol specified
Unable to init server: Could not connect: Connection refused

(gedit:2030): Gtk-WARNING **: cannot open display: :0

I found this thread (https://bbs.archlinux.org/viewtopic.php?id=218908), followed some advices there but still couldn't solve the issue. For instance, one advice is to use gsku instead of gedit. I did follow this, no success.

Any suggestions?

Last edited by thanosfrag (2018-01-16 14:36:02)

Offline

#2 2018-01-13 09:20:00

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: Gtk-WARNING **: cannot open display: :0 [solved]

gedit admin:///etc/UPower/UPower.conf

Offline

#3 2018-01-13 10:35:55

thanosfrag
Member
Registered: 2017-11-06
Posts: 5

Re: Gtk-WARNING **: cannot open display: :0 [solved]

thanks loqs. Your suggestion works.

I just used 'nano' (sudo nano /etc/UPower/UPower.conf) instead of 'gedit', and it does work very well.

Before marking this thread as solved, does anyone know why gedit results in 'GTK warnings'?

Offline

Board footer

Powered by FluxBB