Changeset View
Changeset View
Standalone View
Standalone View
recipes-kf5/tier3/kinit/0001-no-x11.patch
- This file was added.
1 | diff --git a/src/wrapper.cpp b/src/wrapper.cpp | ||||
---|---|---|---|---|---|
2 | index 21de52c..688c59a 100644 | ||||
3 | --- a/src/wrapper.cpp | ||||
4 | +++ b/src/wrapper.cpp | ||||
5 | @@ -43,6 +43,7 @@ | ||||
6 | extern char **environ; | ||||
7 | | ||||
8 | // copied from kdeinit/kinit.cpp | ||||
9 | +#if HAVE_X11 || HAVE_XCB | ||||
10 | static const char* displayEnvVarName_c() | ||||
11 | { | ||||
12 | // Can't use QGuiApplication::platformName() here, there is no app instance. | ||||
13 | @@ -54,6 +55,7 @@ static const char* displayEnvVarName_c() | ||||
14 | return "WIN_DISPLAY"; | ||||
15 | #endif | ||||
16 | } | ||||
17 | +#endif | ||||
18 | | ||||
19 | // adapted from kdeinit/kinit.cpp | ||||
20 | // WARNING, if you change the socket name, adjust kinit.cpp too |