From 4e437cbd79cca7eb1f3bc95478cd76ff0f2f6b44 Mon Sep 17 00:00:00 2001 From: Hrvoje Senjan Date: Sun, 15 Jun 2014 22:58:51 +0200 Subject: [PATCH] Fix QSP porting bug runUserAutostart should look into users dirs, and the port from KGlobalSettings::autostartPath overlooked this, so system location was used instead BUG: 335970 --- ksmserver/startup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ksmserver/startup.cpp b/ksmserver/startup.cpp index 23b3b5a82..7fa10376c 100644 --- a/ksmserver/startup.cpp +++ b/ksmserver/startup.cpp @@ -428,7 +428,7 @@ void KSMServer::runUserAutostart() // now let's execute all the stuff in the autostart folder. // the stuff will actually be really executed when the event loop is // entered, since KRun internally uses a QTimer - QDir dir(QStandardPaths::locate( QStandardPaths::GenericConfigLocation, QStringLiteral("autostart"), QStandardPaths::LocateDirectory)); + QDir dir(QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + QDir::separator() + QStringLiteral("autostart")); if (dir.exists()) { const QStringList entries = dir.entryList( QDir::Files ); foreach (const QString& file, entries) {