mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-27 14:50:21 +03:00
create local autostart folder if is missing
BUG: 402934 FIXED-IN: 0.8.5
This commit is contained in:
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…
x
Reference in New Issue
Block a user