From bfce851d4da5a01f24189ba79eac9385b7ce8533 Mon Sep 17 00:00:00 2001 From: Georgii Surkov Date: Fri, 10 Nov 2023 12:40:31 +0300 Subject: [PATCH] Fix AppImage update --- application/applicationupdater.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/application/applicationupdater.cpp b/application/applicationupdater.cpp index ee52bea3..311d2828 100644 --- a/application/applicationupdater.cpp +++ b/application/applicationupdater.cpp @@ -78,7 +78,7 @@ void ApplicationUpdater::installUpdate(const Flipper::Updates::VersionInfo &vers #if defined(Q_OS_WINDOWS) || defined(Q_OS_MAC) const auto filePath = QDir::temp().absoluteFilePath(fileName); #elif defined(Q_OS_LINUX) - const auto filePath = fileName; + const auto filePath = QDir::current().absoluteFilePath(fileName); #else #error "Unsupported OS" #endif @@ -206,9 +206,7 @@ bool ApplicationUpdater::performUpdate(const QString &path) return mountDmg->error() == QProcess::UnknownError; //Really? no NoError code? #elif defined(Q_OS_LINUX) - const auto info = QFileInfo(path); - const auto success = QProcess::startDetached(info.fileName(), {}, info.absoluteDir().absolutePath()); - + const auto success = QProcess::startDetached(path); if(success) exitApplication(); return success;