Changeset View
Changeset View
Standalone View
Standalone View
startkde/startplasma.cpp
Show First 20 Lines • Show All 190 Lines • ▼ Show 20 Line(s) | 188 | { | |||
---|---|---|---|---|---|
191 | for (const QString & location : locations) { | 191 | for (const QString & location : locations) { | ||
192 | QDir dir(location); | 192 | QDir dir(location); | ||
193 | const auto dirScripts = dir.entryInfoList({QStringLiteral("*.sh")}); | 193 | const auto dirScripts = dir.entryInfoList({QStringLiteral("*.sh")}); | ||
194 | for (const auto script : dirScripts) { | 194 | for (const auto script : dirScripts) { | ||
195 | scripts << script.absoluteFilePath(); | 195 | scripts << script.absoluteFilePath(); | ||
196 | } | 196 | } | ||
197 | } | 197 | } | ||
198 | sourceFiles(scripts); | 198 | sourceFiles(scripts); | ||
199 | | ||||
200 | // Make sure that the KDE prefix is first in XDG_DATA_DIRS and that it's set at all. | | |||
201 | // The spec allows XDG_DATA_DIRS to be not set, but X session startup scripts tend | | |||
202 | // to set it to a list of paths *not* including the KDE prefix if it's not /usr or | | |||
203 | // /usr/local. | | |||
204 | if (!qEnvironmentVariableIsSet("XDG_DATA_DIRS")) { | | |||
205 | qputenv("XDG_DATA_DIRS", KDE_INSTALL_FULL_DATAROOTDIR ":/usr/share:/usr/local/share"); | | |||
206 | } | | |||
207 | } | 199 | } | ||
208 | 200 | | |||
209 | 201 | | |||
210 | // Mark that full KDE session is running (e.g. Konqueror preloading works only | 202 | // Mark that full KDE session is running (e.g. Konqueror preloading works only | ||
211 | // with full KDE running). The KDE_FULL_SESSION property can be detected by | 203 | // with full KDE running). The KDE_FULL_SESSION property can be detected by | ||
212 | // any X client connected to the same X session, even if not launched | 204 | // any X client connected to the same X session, even if not launched | ||
213 | // directly from the KDE session but e.g. using "ssh -X", kdesu. $KDE_FULL_SESSION | 205 | // directly from the KDE session but e.g. using "ssh -X", kdesu. $KDE_FULL_SESSION | ||
214 | // however guarantees that the application is launched in the same environment | 206 | // however guarantees that the application is launched in the same environment | ||
▲ Show 20 Lines • Show All 203 Lines • Show Last 20 Lines |