Fix autostart write path (#1979)
* Fix autostart write path (flameshot-org#1975) * Fix formating
This commit is contained in:
@@ -250,9 +250,9 @@ void ConfigHandler::setStartupLaunch(const bool start)
|
||||
<< process.readAll();
|
||||
}
|
||||
#elif defined(Q_OS_LINUX) || defined(Q_OS_UNIX)
|
||||
QString path = QStandardPaths::locate(QStandardPaths::GenericConfigLocation,
|
||||
"autostart/",
|
||||
QStandardPaths::LocateDirectory);
|
||||
QString path =
|
||||
QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) +
|
||||
"/autostart/";
|
||||
QDir autostartDir(path);
|
||||
if (!autostartDir.exists()) {
|
||||
autostartDir.mkpath(".");
|
||||
|
||||
Reference in New Issue
Block a user