Re: networkmanager causes gnome to not be able to open any programs



> I have been having this problem for a while now and it has seemed 
> random. All of a sudden I can't open any more programs, nothing
> happens. If I try to open a program in a console I get something like:
> 
> gedit
> No protocol specified
> Cannot open display:
> Run 'gedit --help' to see a full list of available command line
> options.
> 
> I check the display variable and it looks fine. I finally narrowed it 
> down to something with networkmanager. I will be fine until I switch 
> networks in networkmanager. If networkmanager always stays on the
> same network I am fine, but if I dare change networks I am then
> forced to kill X and re-log back in to be able to open anything new.
> 
> What is causing this? Has anyone else experienced it?

I found that the HOSTNAME variable was being reset to
localhost.localdomain.com after networkmanager started up on my
distro.  I don't know where networkmanager was getting its information
from on my distro so I simply added a HOSTNAME=$YOURHOSTNAME to my
dhcpcd configuration file.  On my distro its in /etc/conf.d/dhcpcd


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]