Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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? – phoops May 5 '14 at 9:31
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.