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
wilder-5.14
Hrvoje Senjan 12 years ago
parent fc3da7a59e
commit 4e437cbd79
  1. 2
      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) {

Loading…
Cancel
Save