Make autostart directory if it does not exists.
This commit is contained in:
parent
69e81fc50b
commit
1b4ea724c7
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue