create local autostart folder if is missing

BUG: 402934
FIXED-IN: 0.8.5
v0.8
Michail Vourlakos 6 years ago
parent f6921063d2
commit 630160c6af

@ -255,6 +255,13 @@ void UniversalSettings::setAutostart(bool state)
autostartFile.remove();
emit autostartChanged();
} else if (state && metaFile.exists()) {
//! check if autostart folder exists and create otherwise
QDir autostartDir(QDir::homePath() + "/.config/autostart");
if (!autostartDir.exists()) {
QDir configDir(QDir::homePath() + "/.config");
configDir.mkdir("autostart");
}
metaFile.copy(autostartFile.fileName());
//! I havent added the flag "OnlyShowIn=KDE;" into the autostart file
//! because I fall onto a Plasma 5.8 case that this flag

Loading…
Cancel
Save