diff --git a/src/utils/confighandler.cpp b/src/utils/confighandler.cpp index 0836eb40..77a2813e 100644 --- a/src/utils/confighandler.cpp +++ b/src/utils/confighandler.cpp @@ -250,9 +250,9 @@ void ConfigHandler::setStartupLaunch(const bool start) << process.readAll(); } #elif defined(Q_OS_LINUX) || defined(Q_OS_UNIX) - QString path = QStandardPaths::locate(QStandardPaths::GenericConfigLocation, - "autostart/", - QStandardPaths::LocateDirectory); + QString path = + QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + + "/autostart/"; QDir autostartDir(path); if (!autostartDir.exists()) { autostartDir.mkpath(".");