From 86117aed0d32dd7474c78f1d32600a965eb5bb42 Mon Sep 17 00:00:00 2001 From: Daniel Molkentin Date: Mon, 19 May 2014 12:41:15 +0200 Subject: [PATCH] autostart unix impl: use mkpath instead of mkdir Fixes TestUtility::testLaunchOnStartup(), if .config/ does not exist. --- src/mirall/utility_unix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mirall/utility_unix.cpp b/src/mirall/utility_unix.cpp index 3eb27e06f..df90ed37e 100644 --- a/src/mirall/utility_unix.cpp +++ b/src/mirall/utility_unix.cpp @@ -52,7 +52,7 @@ void setLaunchOnStartup_private(const QString &appName, const QString& guiName, QString userAutoStartPath = getUserAutostartDir_private(); QString desktopFileLocation = userAutoStartPath+appName+QLatin1String(".desktop"); if (enable) { - if (!QDir().exists(userAutoStartPath) && !QDir().mkdir(userAutoStartPath)) { + if (!QDir().exists(userAutoStartPath) && !QDir().mkpath(userAutoStartPath)) { qDebug() << "Could not create autostart directory"; return; }