Changeset View
Changeset View
Standalone View
Standalone View
kcms/lookandfeel/kcm.cpp
| Show First 20 Lines • Show All 417 Lines • ▼ Show 20 Line(s) | 415 | for (const QString &serviceFile : autostartServices) { | |||
|---|---|---|---|---|---|
| 418 | as.setCommand(service.exec()); | 418 | as.setCommand(service.exec()); | ||
| 419 | as.setAutostarts(true); | 419 | as.setAutostarts(true); | ||
| 420 | if (qEnvironmentVariableIsSet("KDE_FULL_SESSION")) { | 420 | if (qEnvironmentVariableIsSet("KDE_FULL_SESSION")) { | ||
| 421 | KRun::runApplication(service, {}, nullptr); | 421 | KRun::runApplication(service, {}, nullptr); | ||
| 422 | } | 422 | } | ||
| 423 | } | 423 | } | ||
| 424 | } | 424 | } | ||
| 425 | } | 425 | } | ||
| 426 | //TODO: option to enable/disable apply? they don't seem required by UI design | ||||
| 427 | cg = KConfigGroup(conf, "ksplashrc"); | ||||
| 428 | cg = KConfigGroup(&cg, "KSplash"); | ||||
| 429 | QString splashScreen = (cg.readEntry("Theme", QString())); | ||||
| 430 | // Retain compatibility with certain Look & Feels - L&Fs without a specified Splash Screen will have the splash screen set to their theme name instead | ||||
| 431 | if (!splashScreen.isEmpty()) { | ||||
| 432 | setSplashScreen(splashScreen); | ||||
| 433 | } else { | ||||
| 434 | setSplashScreen(m_selectedPlugin); | ||||
| 435 | } | ||||
| 436 | } else { | ||||
| 437 | // The old behaviour was to set the Splash Screen regardless of whether there was a defaults file or not, therefore we'll use the old behaviour still if there's NO defaults file found | ||||
| 438 | setSplashScreen(m_selectedPlugin); | ||||
| 426 | } | 439 | } | ||
| 427 | 440 | | |||
| 428 | //TODO: option to enable/disable apply? they don't seem required by UI design | 441 | //TODO: option to enable/disable apply? they don't seem required by UI design | ||
| 429 | setSplashScreen(m_selectedPlugin); | | |||
fvogt: If the if block above is not entered, this is not done anymore. Intentional? | |||||
| 430 | setLockScreen(m_selectedPlugin); | 442 | setLockScreen(m_selectedPlugin); | ||
| 431 | 443 | | |||
| 432 | m_configGroup.sync(); | 444 | m_configGroup.sync(); | ||
| 433 | m_package.setPath(m_selectedPlugin); | 445 | m_package.setPath(m_selectedPlugin); | ||
| 434 | runRdb(KRdbExportQtColors | KRdbExportGtkTheme | KRdbExportColors | KRdbExportQtSettings | KRdbExportXftSettings); | 446 | runRdb(KRdbExportQtColors | KRdbExportGtkTheme | KRdbExportColors | KRdbExportQtSettings | KRdbExportXftSettings); | ||
| 435 | } | 447 | } | ||
| 436 | 448 | | |||
| 437 | void KCMLookandFeel::defaults() | 449 | void KCMLookandFeel::defaults() | ||
| ▲ Show 20 Lines • Show All 397 Lines • Show Last 20 Lines | |||||
If the if block above is not entered, this is not done anymore. Intentional?