1

I have VSCode installed using snap for a while, but since yesterday It's not showing up in apps/search.

I narrowed down the issue /var/lib/snapd/desktop/applications/code_code.desktop contains --force-user-env as in Exec=/snap/bin/code --force-user-env %F. If I remove --force-user-env it shows up fine and works as usual. The issue is, with every reboot --force-user-env comes back.

If I copy the desktop file to ~/.local/share/applications then the shortcut I have (Super+2) to launch VSCode, instead of going to the running instance, always opens a new window so I loose the ability to switch.

1 Answer 1

0

I had the exact same issue on Debian trixie. VS Code had been pinned to my taskbar and suddenly vanished. The ~/.local workaround brought it back, and the super keys were working normally for me.

I upgraded everything again today, and now it works without the ~/.local file. The .desktop file looks the same, so I assume it was a Gnome issue.

New contributor
Daniel Carpenter is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.