Darwin: Always set DISPLAY

We weren't setting $DISPLAY when we should be...
This commit is contained in:
Jeremy Huddleston 2007-12-03 19:28:32 -08:00
parent b0349d5b6c
commit c3c71a882f
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ int main(int argc, char **argv) {
}
/* First check if launchd started us */
if(strncmp(argv[1], "--launchd", 9) == 0) {
if(argc == 2 && !strncmp(argv[1], "--launchd", 9)) {
argc--;
argv[1] = argv[0];
argv++;

View File

@ -512,7 +512,7 @@ start_client (void)
case 0: /* child */
/* Setup environment */
temp = getenv("DISPLAY");
if (temp != NULL && temp[0] != 0)
// if (temp == NULL && temp[0] != 0)
setenv("DISPLAY", server_name, TRUE);
temp = getenv("PATH");