You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Linux desktop entry bypasses /usr/bin/code wrapper and causes extension initialization failures #326580
This was reproduced independently on both Linux Mint and KDE Neon. It affects local workspaces and VS Code Remote-SSH sessions.
The following troubleshooting steps did not resolve it:
reinstalling the Codex extension
using fresh VS Code user-data and extensions directories
testing empty and small repositories
clearing VS Code profile state
reinstalling extensions
The same profile and extension succeed or fail solely depending on whether VS Code is launched through /usr/bin/code or directly through /usr/share/code/code.
Expected behavior:
Launching VS Code from the packaged desktop entry should be functionally equivalent to launching it through /usr/bin/code, including extension initialization behavior.
sed -i
's|Exec=/usr/share/code/code |Exec=/usr/bin/code |g'
~/.local/share/applications/code.desktop
update-desktop-database ~/.local/share/applications 2>/dev/null || true
Then remove and re-pin the VS Code launcher, or log out and back in so the desktop environment reloads the user-level entry.
Activity
nckirik commentedon Jul 21, 2026
Workaround
Override the packaged desktop entry to invoke
/usr/bin/code:Then remove and re-pin the VS Code launcher, or log out and back in so the desktop environment reloads the user-level entry.
crliu3227 commentedon Jul 22, 2026
It seems not work for Remote SSH?
erikinkinen commentedon Oct 24, 2026
Bypassing the increased handle limit setup in the wrapper can also cause the Git file monitor to stop working on larger codebases.