Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

I'm using Arch Linux + Xfce.

When I disconnect from a internet network(WiFi or Wire), no programs will run and gets me following error:

[kamix@localhost ~]$ gedit
No protocol specified

** (gedit:5064): WARNING **: Could not open X display
No protocol specified
Unable to init server: Could not connect: Connection refused

(gedit:5064): Gtk-WARNING **: cannot open display: :0.0
share|improve this question
Is it possible that dhcpcd is changing your hostname? – May 5 '14 at 9:31

1 Answer 1

up vote 0 down vote accepted

Should edit /etc/NetworkManager/NetworkManager.conf with this content :

plugins = keyfile

hostname = <your-host-name>

You must replace your hostname(like localhost) with <your-host-name>.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.