Skip to content

Commit

Permalink
Unset CLASSPATH when -xstartup is used
Browse files Browse the repository at this point in the history
  • Loading branch information
twaik authored May 8, 2024
1 parent 6fbd332 commit 74b1723
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/src/main/cpp/lorie/InitOutput.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ static void* ddxReadyThread(unused void* cookie) {
char DISPLAY[16] = "";
sprintf(DISPLAY, ":%s", display);
setenv("DISPLAY", DISPLAY, 1);
unsetenv("CLASSPATH");
execlp("sh", "sh", "-c", xstartup, NULL);
dprintf(2, "Failed to start command `sh -c \"%s\"`: %s\n", xstartup, strerror(errno));
abort();
Expand Down

0 comments on commit 74b1723

Please sign in to comment.