Changeset View
Changeset View
Standalone View
Standalone View
libkworkspace/kworkspace.h
Show First 20 Lines • Show All 144 Lines • ▼ Show 20 Line(s) | 26 | { | |||
---|---|---|---|---|---|
145 | * | 145 | * | ||
146 | * This function is called by clients that are started outside the | 146 | * This function is called by clients that are started outside the | ||
147 | * session ( i.e. before ksmserver is started), but want to launch | 147 | * session ( i.e. before ksmserver is started), but want to launch | ||
148 | * other processes that should participate in the session. Examples | 148 | * other processes that should participate in the session. Examples | ||
149 | * are kdesktop or kicker. | 149 | * are kdesktop or kicker. | ||
150 | */ | 150 | */ | ||
151 | KWORKSPACE_EXPORT void propagateSessionManager(); | 151 | KWORKSPACE_EXPORT void propagateSessionManager(); | ||
152 | 152 | | |||
153 | /** | ||||
154 | * Performs platform detection and adjusts QT_QPA_PLATFORM environment | ||||
155 | * variable to either xcb or wayland depending on the detected platform. | ||||
156 | * | ||||
157 | * The detection is based on the XDG_SESSION_TYPE environment variable. | ||||
158 | * The detection is skipped in case QT_QPA_PLATFORM is already set or | ||||
159 | * if one of the command line arguments contains the "-platform" variable. | ||||
160 | * | ||||
161 | * This function must be invoked before the QGuiApplication instance is constructed. | ||||
broulik: Can you `assert` this? | |||||
I'll rephrase it, it's not a "must", it's just a "must happen before if one wants to use it". Given that I don't think an assert is required. graesslin: I'll rephrase it, it's not a "must", it's just a "must happen before if one wants to use it". | |||||
162 | * @since 5.13 | ||||
163 | **/ | ||||
164 | KWORKSPACE_EXPORT void platformDetection(int argc, char **argv); | ||||
broulik: `detectPlatform`? | |||||
165 | | ||||
153 | } | 166 | } | ||
154 | 167 | | |||
155 | #endif | 168 | #endif |
Can you assert this?