Skip to content

VS Code Doesn't Launch From App Drawer

lomiri-app-launch can't launch VS Code. It creates a systemd user unit which quickly gets SIGTERM'd.

WORKAROUND: It will launch if I change the .desktop file to execute a binary instead of a shell script.

[alex@archlinux applications]$ diff /usr/share/applications/code.desktop ~/.local/share/applications/code.desktop
5c5
< Exec=/usr/bin/code %F
---
> Exec=/opt/visual-studio-code/code %F
27c27
< Exec=/usr/bin/code --new-window %F
---
> Exec=/opt/visual-studio-code/code --new-window %F

[alex@archlinux applications]$ file /usr/bin/code
/usr/bin/code: Bourne-Again shell script, ASCII text executable
[alex@archlinux applications]$ file /opt/visual-studio-code/code
/opt/visual-studio-code/code: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0, BuildID[sha1]=d3e4b2a1b9ebe8c2978f71eca274ab763ae14f6d, stripped
Edited by Alex R