mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-24 14:41:23 +01:00
Make autostart directory if it does not exists.
This commit is contained in:
parent
69e81fc50b
commit
1b4ea724c7
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user