XFCE4 : when hostname is changed, windows manager does not work properly 24 June 2022, 12:10:46 Hi,in a recent update, I just noticed that my laptop hostname changed to localhost.when I change it back to the original name, I can still log in XFCE4, but windows manager does not work properly.ie you cannot move windows, there is no decoraton, etcI changed it using:sudo vi /etc/conf.d/hostname /etc/hostname /etc/openrc/conf.d/hostnameand in effect the change occurs on /etc/conf.d/hostnameIf I login into a fresh account: no problemIf I login into KDE plasma: no problemI fixed it once in the past, can someone tell me where to look ?ie I remember once it was networkmanager wifi changed hostnamesolutionPrevent dhcpcd from setting hostname. on peut le faire de manière globaleWhich gave the my problem is not about DHCP but about NetworkManager. Adding the following to /etc/MetworkManager/NetworkManager.conf solved the problem to me:[main]plugins=keyfile hostname-mode=none source:systemd - NetworkManager interferes with hostname configuration - Unix & Linux Stack Exchangehttps://unix.stackexchange.com/questions/513246/networkmanager-interferes-with-hostname-configuration
Re: XFCE4 : when hostname is changed, windows manager does not work properly Reply #1 – 25 June 2022, 19:46:32 On all the recent unix systems I have used the hostname command can be used to display or set the system hostname. Try man hostname. I believe the official file used to store the system hostname is /etc/hostname, try man 5 hostname.
Re: XFCE4 : when hostname is changed, windows manager does not work properly Reply #2 – 25 June 2022, 20:33:11 yes yes, hostname allows to do that. and FYI it is slightly different than the config file.The thing is: when you do change it, you will notice after a moment that no application seems to launch, and the window manager seems stuck.This is because the DISPLAY variable and the Xauthority is somewhat linked to hostname.My concern is more: when I change it, even after a reboot, I have the same behavior.The only solution I can imagine is: creating a new fresh user home, and move all of my stuff to it.That's to avoid spending time trying to find out which config file is responsible for that.
Re: XFCE4 : when hostname is changed, windows manager does not work properly Reply #3 – 25 June 2022, 21:47:16 Did you follow the xfce4 faq and just put 127.0.0.1 localhost into /etc/hosts? It might be that xfce4 requires a hostname which it is fetching from /etc/hosts. If you have a different hostname than localhost perhaps you should just try and provide the right mapping in /etc/hostseg127.0.0.1 localhost mypreferredhostnameI don't use lxdm or xfce4. My runit system uses slim as login manager and that starts x11 and uses ~/.xinitrc. The DISPLAY env variable is just DISPLAY=:0.0 1 Likes
Re: XFCE4 : when hostname is changed, windows manager does not work properly Reply #4 – 26 June 2022, 07:59:29 Adding it to the hosts file is a good idea, i will try it