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 | } | ||||
426 | } | 436 | } | ||
427 | 437 | | |||
428 | //TODO: option to enable/disable apply? they don't seem required by UI design | 438 | //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); | 439 | setLockScreen(m_selectedPlugin); | ||
431 | 440 | | |||
432 | m_configGroup.sync(); | 441 | m_configGroup.sync(); | ||
433 | m_package.setPath(m_selectedPlugin); | 442 | m_package.setPath(m_selectedPlugin); | ||
434 | runRdb(KRdbExportQtColors | KRdbExportGtkTheme | KRdbExportColors | KRdbExportQtSettings | KRdbExportXftSettings); | 443 | runRdb(KRdbExportQtColors | KRdbExportGtkTheme | KRdbExportColors | KRdbExportQtSettings | KRdbExportXftSettings); | ||
435 | } | 444 | } | ||
436 | 445 | | |||
437 | void KCMLookandFeel::defaults() | 446 | 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?