pep-dortmund / homepage-toolbox

Website for the PeP et al. Toolbox Workshop at TU Dortmund
http://toolbox.pep-dortmund.org
3 stars 1 forks source link

Showing missing XServer in the Terminal #173

Closed LuckyJosh closed 2 years ago

LuckyJosh commented 2 years ago

Just recently I added the following condition to my wsl .bashrc:

if ! xhost >& /dev/null ; then 
echo -e "\033[31;1mDisplay ($DISPLAY) not found\033[0m: You might want to turn on the XServer" ; 
fi

If the XServer is not running it will show as the first line in every new terminal:

grafik

The red/bold formatting is just my personal preference.

Should we add this to the Win10-instructions?

jpwgnr commented 2 years ago

I like it.

chrbeckm commented 2 years ago

Additionally we could add instructions to place the XServer in the AutoStart list.

jpwgnr commented 2 years ago

Even better 👍