Commit a126e22f authored by Martin Tobias Holmedahl Sandsmark's avatar Martin Tobias Holmedahl Sandsmark Committed by Harald Sitter
Browse files

Unset SESSION_MANAGER instead of setting it to an empty variable

The Qt X11 integration checks if the variable set, not whether it is
empty, so we need to unset it to avoid a warning about failing to
connect.
parent 667f8dd3
Pipeline #100517 passed with stage
in 1 minute and 54 seconds
......@@ -109,7 +109,7 @@ extern "C" Q_DECL_EXPORT int kdemain( int argc, char **argv )
// so it for example wouldn't reply to ksmserver - on the other
// hand, this slave uses QPixmaps for some reason, and they
// need QGuiApplication
putenv(strdup("SESSION_MANAGER="));
qunsetenv("SESSION_MANAGER");
// Some thumbnail plugins use QWidget classes for the rendering,
// so use QApplication here, not just QGuiApplication
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment