Launching a devcontainers before signing in into KDE breaks KDE permanently

Here is a weird one. How to reproduce:

  • Boot Fedora 41 KDE spin.
  • Wait until the sign in screen is shown.
  • Do not sign in.
  • From another computer: Launch Cursor/VScode and initiate a remote session with the Fedora 41 computer.
  • Within Cursor, choose “Reopen in container” (this requires the folder to have a devcontainer setup).
  • UNEXPECTED, launching the devcontainer fails with the following message:
[2025-02-01T22:08:35.572Z] Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/run/user/1000/wayland-0" to rootfs at "/tmp/vscode-wayland-8210348f-70e3-470c-84ea-d23197118fb9.sock": create mountpoint for /tmp/vscode-wayland-8210348f-70e3-470c-84ea-d23197118fb9.sock mount: cannot create subdirectories in "/var/lib/docker/overlay2/e890a989fd90b77edf569824625ea7377c08d12d4bd6d44c889622660bed4091/merged/tmp/vscode-wayland-8210348f-70e3-470c-84ea-d23197118fb9.sock": not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type

From now on, KDE is broken:

  • Try to sign in into the Fedora 41 computer by entering your username and password.
  • UNEXPECTED: KDE won’t load. The login screen will reload instead.

In this state, trying to launch plasmashell within the SSH session will show the following error message:

$ plasmashell
qt.qpa.xcb: could not connect to display 
qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: wayland-egl, wayland, eglfs, linuxfb, minimal, minimalegl, offscreen, vkkhrdisplay, vnc, xcb.

Aborted (core dumped)

The only way to restore it that I found is to run sudo dnf reinstall qt6-qtbase-gui xcb-util-cursor and rebooting.

Nothing of the above happens if I sign in into KDE before trying to launch the devcontainer. Everything works as expected if I do that.

inxi -Fzxx
$ inxi -Fzxx
System:
  Kernel: 6.12.11-200.fc41.x86_64 arch: x86_64 bits: 64 compiler: gcc v: 14.2.1
  Console: pty pts/2 DM: SDDM Distro: Fedora Linux 41 (KDE Plasma)
Machine:
  Type: Desktop System: ASUS product: N/A v: N/A serial: 
  Mobo: ASUSTeK model: ROG STRIX B650-A GAMING WIFI v: Rev 1.xx serial: 
    part-nu: SKU UEFI: American Megatrends v: 2613 date: 04/12/2024
CPU:
  Info: 12-core model: AMD Ryzen 9 7900 bits: 64 type: MT MCP arch: Zen 4 rev: 2 cache:
    L1: 768 KiB L2: 12 MiB L3: 64 MiB
  Speed (MHz): avg: 3592 min/max: 545/5482 boost: enabled cores: 1: 3592 2: 3592 3: 3592 4: 3592
    5: 3592 6: 3592 7: 3592 8: 3592 9: 3592 10: 3592 11: 3592 12: 3592 13: 3592 14: 3592 15: 3592
    16: 3592 17: 3592 18: 3592 19: 3592 20: 3592 21: 3592 22: 3592 23: 3592 24: 3592
    bogomips: 177600
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: NVIDIA GA106 [GeForce RTX 3060 Lite Hash Rate] vendor: ASUSTeK driver: nvidia
    v: 565.77 arch: Ampere pcie: speed: 2.5 GT/s lanes: 16 ports: active: none off: DP-1
    empty: DP-2,DP-3,HDMI-A-1 bus-ID: 01:00.0 chip-ID: 10de:2504
  Device-2: Insta360 Link driver: snd-usb-audio,uvcvideo type: USB rev: 2.0 speed: 480 Mb/s
    lanes: 1 bus-ID: 3-2.4.1:11 chip-ID: 2e1a:4c01
  Display: unspecified server: X.org v: 1.21.1.15 with: Xwayland v: 24.1.4
    compositor: kwin_wayland driver: X: loaded: modesetting,nvidia alternate: fbdev,nouveau,nv,vesa
    gpu: nvidia,nvidia-nvswitch tty: 188x40
  Monitor-1: DP-1 model: LG (GoldStar) HDR DQHD res: 3840x1080 dpi: 81 diag: 1244mm (49")
  API: EGL v: 1.5 platforms: device: 0 drv: nvidia gbm: drv: nvidia surfaceless: drv: nvidia
    wayland: drv: nvidia inactive: x11
  API: OpenGL v: 4.6.0 vendor: nvidia v: 565.77 note: console (EGL sourced) renderer: NVIDIA
    GeForce RTX 3060/PCIe/SSE2
  API: Vulkan v: 1.4.304 surfaces: wayland device: 0 type: discrete-gpu driver: N/A
    device-ID: 10de:2504 device: 1 type: cpu driver: N/A device-ID: 10005:0000
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo de: kscreen-console,kscreen-doctor
    gpu: nvidia-settings,nvidia-smi wl: swaymsg,wayland-info x11: xdriinfo, xdpyinfo, xprop, xrandr
Audio:
  Device-1: NVIDIA GA106 High Definition Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel
    pcie: speed: 16 GT/s lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:228e
  Device-2: ASUSTek USB Audio driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 bus-ID: 1-6:2 chip-ID: 0b05:1a52
  Device-3: Razer USA Seiren Mini driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 1.1
    speed: 12 Mb/s lanes: 1 bus-ID: 3-2.3.3:10 chip-ID: 1532:0531
  Device-4: Insta360 Link driver: snd-usb-audio,uvcvideo type: USB rev: 2.0 speed: 480 Mb/s
    lanes: 1 bus-ID: 3-2.4.1:11 chip-ID: 2e1a:4c01
  API: ALSA v: k6.12.11-200.fc41.x86_64 status: kernel-api
  Server-1: PipeWire v: 1.2.7 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin
Network:
  Device-1: Intel Ethernet I225-V vendor: ASUSTeK driver: igc v: kernel pcie: speed: 5 GT/s
    lanes: 1 port: N/A bus-ID: 08:00.0 chip-ID: 8086:15f3
  IF: eno1 state: up speed: 1000 Mbps duplex: full mac: 
  Device-2: MEDIATEK MT7922 802.11ax PCI Express Wireless Network Adapter vendor: Foxconn
    driver: mt7921e v: kernel pcie: speed: 5 GT/s lanes: 1 bus-ID: 09:00.0 chip-ID: 14c3:0616
  IF: wlp9s0 state: down mac: 
  IF-ID-1: br-2fa109967464 state: down mac: 
  IF-ID-2: br-3363495729a7 state: down mac: 
  IF-ID-3: br-5411f5e7e02e state: down mac: 
  IF-ID-4: br-58a5dde97d5b state: up speed: 10000 Mbps duplex: unknown mac: 
  IF-ID-5: br-8b938993595a state: down mac: 
  IF-ID-6: docker0 state: down mac: 
  IF-ID-7: veth519c0fe state: up speed: 10000 Mbps duplex: full mac: 
Bluetooth:
  Device-1: Foxconn / Hon Hai Wireless_Device driver: btusb v: 0.8 type: USB rev: 2.1
    speed: 480 Mb/s lanes: 1 bus-ID: 1-11:5 chip-ID: 0489:e0e2
  Report: btmgmt ID: hci0 rfk-id: 1 state: up address:  bt-v: 5.2 lmp-v: 11
Drives:
  Local Storage: total: 931.51 GiB used: 629.04 GiB (67.5%)
  ID-1: /dev/nvme0n1 vendor: Kingston model: SNV2S1000G size: 931.51 GiB speed: 63.2 Gb/s
    lanes: 4 serial:  temp: 39.9 C
Partition:
  ID-1: / size: 929.91 GiB used: 628.55 GiB (67.6%) fs: btrfs dev: /dev/dm-0
    mapped: luks-15748bab-5b44-4b3c-9152-51b3c40e161f
  ID-2: /boot size: 973.4 MiB used: 478.8 MiB (49.2%) fs: ext4 dev: /dev/nvme0n1p2
  ID-3: /boot/efi size: 598.8 MiB used: 19.3 MiB (3.2%) fs: vfat dev: /dev/nvme0n1p1
  ID-4: /home size: 929.91 GiB used: 628.55 GiB (67.6%) fs: btrfs dev: /dev/dm-0
    mapped: luks-15748bab-5b44-4b3c-9152-51b3c40e161f
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100 dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 46.6 C mobo: 37.2 C gpu: nvidia temp: 44 C
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 64 GiB available: 62.5 GiB used: 3.9 GiB (6.2%)
  Processes: 524 Power: uptime: 16m wakeups: 0 Init: systemd v: 256 target: graphical (5)
    default: graphical
  Packages: 83 pm: nix-usr pkgs: 67 pm: rpm pkgs: N/A note: see --rpm pm: flatpak pkgs: 16
    Compilers: gcc: 14.2.1 Shell: Bash v: 5.2.32 running-in: pty pts/2 inxi: 3.3.37

Did anybody else experience this? Any ideas on how to fix it permanently?

Thanks!