Skip to content

Commit

Permalink
Fix AppImage update
Browse files Browse the repository at this point in the history
  • Loading branch information
gsurkov committed Nov 10, 2023
1 parent 8a3ba64 commit bfce851
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions application/applicationupdater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit bfce851

Please sign in to comment.