Hi everyone,
I’m experiencing an issue with VSCodium on my Manjaro KDE system that I haven’t been able to resolve despite trying several workarounds. When I open the file dialog (e.g., to open a folder), it hangs for an extended period (a minute on every click). After some digging, I’ve discovered that the delay is caused by the file dialog triggering an automount of one of my NAS shares.
The Issue
My file dialog’s sidebar shows several network shares (configured for automount via systemd). The first share in the sidebar (//192.168.1.100/manjaro-home) is not mounted at the time the dialog opens, so xdg‑desktop‑portal attempts to mount it automatically. This mount attempt fails (error code –113 from CIFS), causing a significant delay. If I remove or rearrange the share, the portal simply moves on to the next unmounted share, so the problem persists.
I cannot pre-mount these shares because I rely on their automount behavior for my backup system and overall workflow in Dolphin.
What I’ve Tried
GPU-Related Flags:
-
Launched VSCodium with --disable-gpu (and also tried with --disable-gpu-sandbox) to rule out GPU rendering issues.
-
Verified the process shows the flag, and it initially worked—but then later the file dialog still hung.
Environment Variables for Portals:
-
Tried setting GTK_USE_PORTAL=0 before launching VSCodium (i.e., GTK_USE_PORTAL=0 codium --disable-gpu), but the file dialog’s GUI did not change.
-
ELECTRON_USE_DESKTOP_PORTAL=0 codium --disable-gpu, which still resulted in the same native file dialog with automount behavior.
Logging & Configuration Reset:
-
Enabled Electron logging with ELECTRON_ENABLE_LOGGING=1 (capturing logs to a file) to check for errors related to the file dialog, but no relevant messages appeared.
-
Cleared all VSCodium settings and extensions to eliminate any potential conflicts.
System & Automount Checks:
-
Confirmed that xdg-desktop-portal and xdg-desktop-portal-kde are up to date and running.
-
Verified that the automount is triggered by xdg‑desktop‑portal when the file dialog opens—visible in the system logs (CIFS mount errors for the NAS share).
System Details
inxi -b
❱ inxi -b
System:
Host: greg-venusseries Kernel: 6.13.5-2-MANJARO arch: x86_64 bits: 64
Desktop: KDE Plasma v: 6.3.2 Distro: Manjaro Linux
Machine:
Type: Desktop System: Micro (HK) Tech product: Venus Series
Mobo: Shenzhen Meigao Equipment model: AHWSA, UEFI: American Megatrends LLC. v: AHWSA.1.22 (03/12/2024)
CPU:
14-core (6-mt/8-st) 13th Gen Intel Core i9-13900H
Graphics:
Intel Raptor Lake-P [Iris Xe Graphics] (driver: i915)
Display: X.Org (Xwayland) with modesetting, 3840x2160@60Hz
Network:
Intel Ethernet I226-V, MEDIATEK MT7922 802.11ax PCIe Wireless
Drives:
Local Storage: 1.84 TiB total, 323.1 GiB used
Memory:
32 GiB total, ~31 GiB available
❱ codium --version
1.98.2
c6b0b68cdb1a0ec15f1eb97d903aa1855445fd42
x64
Summary
Problem: Opening the VSCodium file dialog hangs due to the automount attempt of my NAS share (//192.168.1.100/manjaro-home) by xdg‑desktop‑portal.
Impact: Significant delays in the file dialog (every click in it, even closing it), affecting workflow in VSCodium.
Constraints: I need these shares to remain visible and automount (for backups and access in Dolphin); pre-mounting or hiding them isn’t an option.
Workarounds Tried: Various GPU and portal flags, environment variables (GTK_USE_PORTAL=0, ELECTRON_USE_DESKTOP_PORTAL=0), logging, config resets, etc.
Has anyone encountered a similar issue or found a workaround that allows the file dialog to operate normally without triggering the automount (or at least to avoid the delay) while still keeping my NAS shares available? Any advice or suggestions would be greatly appreciated.
Thanks in advance for your help!
—Jack