From b6fd1a869475c20a96d15d624de3f02863a0067c Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Sat, 17 Oct 2020 11:53:26 +0200 Subject: [PATCH] Need Qt >= 5.1 for qunsetenv --- client/src/proxgui.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/src/proxgui.cpp b/client/src/proxgui.cpp index cec64d8be..525e64da6 100644 --- a/client/src/proxgui.cpp +++ b/client/src/proxgui.cpp @@ -60,7 +60,9 @@ extern "C" void InitGraphics(int argc, char **argv, char *script_cmds_file, char if (getenv("DISPLAY") == NULL) return; #endif +#if QT_VERSION >= 0x050100 qunsetenv("SESSION_MANAGER"); +#endif main_loop_thread = new WorkerThread(script_cmds_file, script_cmd, stayInCommandLoop); gui = new ProxGuiQT(argc, argv, main_loop_thread); }