diff --git a/startkde/plasma-session/startup.cpp b/startkde/plasma-session/startup.cpp index 7208a54b4..38f62c46d 100644 --- a/startkde/plasma-session/startup.cpp +++ b/startkde/plasma-session/startup.cpp @@ -210,7 +210,7 @@ Startup::Startup(QObject *parent): upAndRunning(QStringLiteral("ksmserver")); const AutoStart autostart; - QProcess::execute(QStringLiteral(CMAKE_INSTALL_FULL_LIBEXECDIR_KF5 "/start_kdeinit_wrapper")); + QProcess::execute(QStringLiteral(CMAKE_INSTALL_FULL_LIBEXECDIR_KF5 "/start_kdeinit_wrapper"), QStringList()); KJob* phase1; QProcessEnvironment kdedProcessEnv; diff --git a/startkde/startplasma.cpp b/startkde/startplasma.cpp index beea80533..434c64ac0 100644 --- a/startkde/startplasma.cpp +++ b/startkde/startplasma.cpp @@ -210,7 +210,7 @@ void runEnvironmentScripts() continue; } const auto dirScripts = dir.entryInfoList({QStringLiteral("*.sh")}, QDir::Files, QDir::Name); - for (const auto script : dirScripts) { + for (const auto &script : dirScripts) { scripts << script.absoluteFilePath(); } }