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?
#VSCode is not running
33 messages · Page 1 of 1 (latest)
you can edit the .desktop file and make sure it runs with the same command you are running via command line
what de are you using?
hyprland for now
The problem is i cant find it to change it
what app launcher?
I don't know
Is there anyway to find it?
It's not Rofi
Im using DankShell
I made a key bind for it
But it is still getting on my nerve
/var/lib/flatpak/app/<app_id>/current/active/files/share/applications/<app_id>.desktop
[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
i think its probably due to the --disable-gpu?
Yes
It opens
The vscode
you can add launch flags in flatseal
How?
Can i add
flatpak run com.visualstudio.code --disable-gpu --ozone-platform=x11
To this?
ideally dont edit that file
Oh ok
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
I test it
With --disable-gpu only, it didn't open it
But with --ozone only, it open it
So --ozone is the problem
my recommendation was to add that to the "Exec=" portion. not sure what the downside to that is @prisma helm?
ideally its best to not modify files tracked by package managers
as this can cause integrity check fails and you'll have to do the modification every time it updates