Skip to content

Commit

Permalink
Fixed build on Unix.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Aug 19, 2009
1 parent 8bf96ca commit 4b9feca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions platform_unix.c
Expand Up @@ -1366,7 +1366,8 @@ boolean MojoPlatform_spawnTerminal(void)
if (!failed)
exit(0);

// otherwise, returning at all says we failed.
// we'll return false at the end to note we failed.

#else

// urgh
Expand All @@ -1384,7 +1385,7 @@ boolean MojoPlatform_spawnTerminal(void)
int startarg = 0;

if (getenv("DISPLAY") == NULL)
return; // don't bother if we don't have X.
return false; // don't bother if we don't have X.

else if (getenv("GNOME_DESKTOP_SESSION_ID") != NULL) // this is gnome?
tryfirst = "gnome-terminal";
Expand Down

0 comments on commit 4b9feca

Please sign in to comment.