Darwin: Always set DISPLAY
We weren't setting $DISPLAY when we should be...
This commit is contained in:
parent
b0349d5b6c
commit
c3c71a882f
|
@ -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++;
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue
Block a user