#VSCode is not running

33 messages · Page 1 of 1 (latest)

subtle stratus
#

Whenever i open VSCode without using any terminals like app launcher and stuff, It's open in Task Manager, the CPU usage percentage goes up drastically and then it closes by itself after a minute or two. I don't even notice that it's open. But when I open it with the code:
flatpak run com.visualstudio.code --disable-gpu --ozone-platform=x11
it opens but uses less CPU, which is logical. What should I do?

long pagoda
#

you can edit the .desktop file and make sure it runs with the same command you are running via command line

long pagoda
#

what de are you using?

subtle stratus
subtle stratus
long pagoda
#

what app launcher?

subtle stratus
#

Im using DankShell

subtle stratus
#

I made a key bind for it
But it is still getting on my nerve

prisma helm
subtle stratus
# prisma helm ```/var/lib/flatpak/app/<app_id>/current/active/files/share/applications/<app_id...

[Desktop Entry]
Name=Visual Studio Code
Comment=Code Editing. Redefined.
GenericName=Text Editor
Exec=code --reuse-window %F
Icon=com.visualstudio.code
Type=Application
StartupNotify=true
StartupWMClass=Code
Categories=TextEditor;Development;IDE;
MimeType=text/plain;inode/directory;application/x-code-workspace;
Actions=new-empty-window;
Keywords=vscode;

[Desktop Action new-empty-window]
Name=New Empty Window
Exec=code --new-window %F
Icon=com.visualstudio.code

prisma helm
#

i think its probably due to the --disable-gpu?

subtle stratus
#

The vscode

prisma helm
#

you can add launch flags in flatseal

subtle stratus
#

How?

prisma helm
#

i cant find it but

#

maybe its not there

#

i swear i remember seeing it

subtle stratus
subtle stratus
#

Oh ok

prisma helm
#

for ozone platform you can simply put it in DE/WM env settings

#

ELECTRON_OZONE_PLATFORM_HINT=x11

#

im not sure about the disable gpu

subtle stratus
#

I test it

#

With --disable-gpu only, it didn't open it
But with --ozone only, it open it

#

So --ozone is the problem

long pagoda
prisma helm
#

as this can cause integrity check fails and you'll have to do the modification every time it updates

long pagoda
#

but it won't break anything 🙈

#

within VSCode itself