Bad environment variables leads to broken workspace

Just wanted to post here and say thanks for putting this solution in the stable update thread. I had the same issue even with different kernel and an AMD system, but this workaround fixed it! I couldn’t even get a TTY though so had to boot from recovery USB, manjaro-chroot -a, and edit /etc/environment from there.

Will paste system info here just in case it’s useful for others somehow.

$ inxi -b
System:
  Host: travis-desktop Kernel: 6.7.0-0-MANJARO arch: x86_64 bits: 64
    Desktop: KDE Plasma v: 5.27.10 Distro: Manjaro Linux
Machine:
  Type: Desktop System: Gigabyte product: B650M K v: N/A
    serial: <superuser required>
  Mobo: Gigabyte model: B650M K v: x.x serial: <superuser required>
    UEFI: American Megatrends LLC. v: FB date: 07/13/2023
CPU:
  Info: 6-core AMD Ryzen 5 7600X [MT MCP] speed (MHz): avg: 2654
    min/max: 400/5453
Graphics:
  Device-1: AMD Navi 21 [Radeon RX 6800/6800 XT / 6900 XT] driver: amdgpu
    v: kernel
  Device-2: AMD Raphael driver: amdgpu v: kernel
  Display: x11 server: X.Org v: 21.1.10 driver: X: loaded: amdgpu
    unloaded: modesetting,radeon dri: radeonsi gpu: amdgpu resolution:
    1: 1920x1080 2: 1920x1080~60Hz
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 23.3.3-manjaro1.1
    renderer: AMD Radeon RX 6800 XT (radeonsi navi21 LLVM 16.0.6 DRM 3.56
    6.7.0-0-MANJARO)
Network:
  Device-1: Realtek RTL8125 2.5GbE driver: r8169
Drives:
  Local Storage: total: 1.83 TiB used: 621.81 GiB (33.1%)
Info:
  Processes: 323 Uptime: 5m Memory: total: 32 GiB note: est.
  available: 30.51 GiB used: 4.2 GiB (13.8%) Shell: Zsh inxi: 3.3.31