Changeset View
Changeset View
Standalone View
Standalone View
startkde/startplasma.cpp
Show First 20 Lines • Show All 228 Lines • ▼ Show 20 Line(s) | 228 | { | |||
---|---|---|---|---|---|
229 | //Manually disable auto scaling because we are scaling above | 229 | //Manually disable auto scaling because we are scaling above | ||
230 | //otherwise apps that manually opt in for high DPI get auto scaled by the developer AND manually scaled by us | 230 | //otherwise apps that manually opt in for high DPI get auto scaled by the developer AND manually scaled by us | ||
231 | qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "0"); | 231 | qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "0"); | ||
232 | 232 | | |||
233 | qputenv("KDE_FULL_SESSION", "true"); | 233 | qputenv("KDE_FULL_SESSION", "true"); | ||
234 | qputenv("KDE_SESSION_VERSION", "5"); | 234 | qputenv("KDE_SESSION_VERSION", "5"); | ||
235 | qputenv("KDE_SESSION_UID", QByteArray::number(getuid())); | 235 | qputenv("KDE_SESSION_UID", QByteArray::number(getuid())); | ||
236 | qputenv("XDG_CURRENT_DESKTOP", "KDE"); | 236 | qputenv("XDG_CURRENT_DESKTOP", "KDE"); | ||
237 | | ||||
238 | qputenv("KDE_APPLICATIONS_AS_SCOPE", "1"); | ||||
237 | } | 239 | } | ||
238 | 240 | | |||
239 | void setupX11() | 241 | void setupX11() | ||
240 | { | 242 | { | ||
241 | // Set a left cursor instead of the standard X11 "X" cursor, since I've heard | 243 | // Set a left cursor instead of the standard X11 "X" cursor, since I've heard | ||
242 | // from some users that they're confused and don't know what to do. This is | 244 | // from some users that they're confused and don't know what to do. This is | ||
243 | // especially necessary on slow machines, where starting KDE takes one or two | 245 | // especially necessary on slow machines, where starting KDE takes one or two | ||
244 | // minutes until anything appears on the screen. | 246 | // minutes until anything appears on the screen. | ||
▲ Show 20 Lines • Show All 183 Lines • Show Last 20 Lines |