Typing xauth merge ~/.Xauthority
did not work :/
However, I managed to reproduce the error by changing from my own phone hotspot to the hotspot of my boyfriend. When changing back from my boyfriend's hotspot to my own, I could open applications again. I looked at journalctl
and I found this. It seems, that when I connect to my boyfriend's hotspot, my hostname is changed to 'boyfriend.telephone-company.com' (changed to preserve a bit of anonymity). When I change back to my own hotspot, the hostname is again changed back to 'archlinux'. It seems weird.
I'll try to test again later today with other wifi-connections and see if it only happens with my boyfriend's hotspot. I've had some issues with his hotspot before, so it might just be it.
When connection to my boyfriend's hotspot:
Jan 09 10:00:45 archlinux NetworkManager[521]: <info> [1736413245.1806] dhcp6 (wlp4s0): activation: beginning transaction (timeout in 45 seconds)
Jan 09 10:00:45 archlinux NetworkManager[521]: <info> [1736413245.1821] policy: set 'Boyfriend - iPhone' (wlp4s0) as default for IPv6 routing and DNS
Jan 09 10:00:45 archlinux NetworkManager[521]: <info> [1736413245.2177] dhcp6 (wlp4s0): state changed new lease
Jan 09 10:00:47 archlinux systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully.
Jan 09 10:00:49 archlinux NetworkManager[521]: <info> [1736413249.7206] policy: set-hostname: set hostname to 'boyfriend.telephone-company.com' (from address lookup)
Jan 09 10:00:49 archlinux systemd[1]: Starting Hostname Service...
Jan 09 10:00:49 archlinux systemd[1]: Started Hostname Service.
Jan 09 10:00:49 boyfriend.telephone-company.com systemd-hostnamed[1812]: Hostname set to <boyfriend.telephone-company.com> (transient)
Jan 09 10:00:49 boyfriend.telephone-company.com systemd[1]: Starting Network Manager Script Dispatcher Service...
Jan 09 10:00:49 boyfriend.telephone-company.com systemd[1]: Started Network Manager Script Dispatcher Service.
Jan 09 10:00:59 boyfriend.telephone-company.com systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully.
Jan 09 10:01:19 boyfriend.telephone-company.com systemd[1]: systemd-hostnamed.service: Deactivated successfully.
when connecting back to my own hotspot:
Jan 09 10:01:42 boyfriend.telephone-company.com kernel: wlp4s0: authenticated
Jan 09 10:01:42 boyfriend.telephone-company.com kernel: wlp4s0: associate with 72:23:ad:c5:e6:0c (try 1/3)
Jan 09 10:01:42 boyfriend.telephone-company.com NetworkManager[521]: <info> [1736413302.2633] device (wlp4s0): supplicant interface state: authenticating -> associating
Jan 09 10:01:42 boyfriend.telephone-company.com NetworkManager[521]: <info> [1736413302.2633] device (p2p-dev-wlp4s0): supplicant management interface state: authenticating -> associating
Jan 09 10:01:42 boyfriend.telephone-company.com systemd[1]: Started Hostname Service.
Jan 09 10:01:42 archlinux systemd-hostnamed[1911]: Hostname set to <archlinux> (transient)
Jan 09 10:01:42 archlinux kernel: wlp4s0: RX AssocResp from 72:23:ad:c5:e6:0c (capab=0x1431 status=0 aid=1)
Jan 09 10:01:42 archlinux wpa_supplicant[574]: wlp4s0: Associated with 72:23:ad:c5:e6:0c
Jan 09 10:01:42 archlinux wpa_supplicant[574]: wlp4s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
Jan 09 10:01:42 archlinux kernel: wlp4s0: associated
Jan 09 10:01:42 archlinux NetworkManager[521]: <info> [1736413302.2861] device (wlp4s0): supplicant interface state: associating -> associated
Thanks so much <3
Turns out I didn't have a file at
/etc/hostname
. I created one and now the problem is gone :)Thanks so much for your help <3