Skip to content

Commit

Permalink
fix(InitOutput.c): restore accidentally removed DISPLAY assignation
Browse files Browse the repository at this point in the history
  • Loading branch information
twaik committed Dec 24, 2024
1 parent b0d07af commit 0d58c0e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/src/main/cpp/lorie/InitOutput.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,10 @@ static void* ddxReadyThread(unused void* cookie) {

if (!pid) {
char DISPLAY[16] = "";
#define INHERIT_VAR(v) char *v = getenv("XSTARTUP_" #v); if (v && strlen(v)) setenv(#v, v, 1);
sprintf(DISPLAY, ":%s", display);
setenv("DISPLAY", DISPLAY, 1);

#define INHERIT_VAR(v) char *v = getenv("XSTARTUP_" #v); if (v && strlen(v)) setenv(#v, v, 1); unsetenv("XSTARTUP_" #v);
INHERIT_VAR(CLASSPATH)
INHERIT_VAR(LD_LIBRARY_PATH)
INHERIT_VAR(LD_PRELOAD)
Expand Down

0 comments on commit 0d58c0e

Please sign in to comment.