From 152b3f76f50d03f2c4b9b6c90c3a3d0c7c8b7f2f Mon Sep 17 00:00:00 2001
From: Kubat <mael.martin31@gmail.com>
Date: Wed, 10 Feb 2021 19:13:36 +0100
Subject: [PATCH] KLKT: Should mitigate the qt deprecated version of
 startDetached

---
 src/klkt/klkt.hpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/klkt/klkt.hpp b/src/klkt/klkt.hpp
index c282e164..3e0d5b31 100644
--- a/src/klkt/klkt.hpp
+++ b/src/klkt/klkt.hpp
@@ -660,7 +660,8 @@ public:
     void
     restart(void) const {
         sendNotification("Klkt restart", "Klkt will restart", Urgency::LOW);
-        QProcess::startDetached(QApplication::applicationFilePath());
+        QStringList args{QApplication::applicationFilePath()};
+        QProcess::startDetached(args[0], args);
         ::exit(EXIT_SUCCESS);
     }
 };
-- 
GitLab