Make autostart directory if it does not exists.

This commit is contained in:
Martin Rotter 2016-06-23 11:04:21 +02:00
parent 69e81fc50b
commit 1b4ea724c7

View File

@ -154,6 +154,10 @@ bool SystemFactory::setAutoStartStatus(const AutoStartStatus &new_status) {
}
}
if (!QDir().mkpath(APP_DESKTOP_ENTRY_PATH)) {
return false;
}
return QFile::copy(QString(APP_DESKTOP_ENTRY_PATH) + QDir::separator() + APP_DESKTOP_SOURCE_ENTRY_FILE,
getAutostartDesktopFileLocation());