visual studio code is not launching in linux even though it is in the path

Issue

visual studio code is not launching in linux even though it is in the path

I tried "code ." and expect to open the vscode for the current folder

Solution

export DISPLAY=:0 made my day

My Display was not set.It was unset while doing other debugging. reverting it make the window app launch from terminal.

DISPLAY is part of your linux serverx, usually the linux terminal doesn’t support launching the window applications from terminal until the display is configured. so it is essential to make sure you have the right config for your DISPLAY arg for your serverx

Answered By – Senthurai

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published