Skip to content
Snippets Groups Projects
Commit 22e88b02 authored by deuce's avatar deuce
Browse files

Check SSH_CLIENT as well as REMOTEHOST for purposes of disabling local

framebuffer/svgalib output.
parent 86b475b4
No related branches found
No related tags found
No related merge requests found
...@@ -661,7 +661,7 @@ int SDL_main_env(int argc, char **argv, char **env) ...@@ -661,7 +661,7 @@ int SDL_main_env(int argc, char **argv, char **env)
* This ugly hack attempts to prevent this... of course, remote X11 * This ugly hack attempts to prevent this... of course, remote X11
* connections must still be allowed. * connections must still be allowed.
*/ */
if((!use_sdl_video) || (getenv("REMOTEHOST")!=NULL && getenv("DISPLAY")==NULL)) { if((!use_sdl_video) || ((getenv("REMOTEHOST")!=NULL || getenv("SSH_CLIENT")!=NULL) && getenv("DISPLAY")==NULL)) {
/* Sure ,we can't use video, but audio is still valid! */ /* Sure ,we can't use video, but audio is still valid! */
if(sdl.Init(0)==0) if(sdl.Init(0)==0)
sdl_initialized=TRUE; sdl_initialized=TRUE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment