From 6bd0a8df898949d3433f1decd1d161ae9ecdd282 Mon Sep 17 00:00:00 2001 From: Vishrut Sachan Date: Sun, 1 Nov 2026 19:04:40 +0530 Subject: [PATCH] Qt: Preserve portable mode when restarting after AppImage updates --- pcsx2-qt/AutoUpdaterDialog.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pcsx2-qt/AutoUpdaterDialog.cpp b/pcsx2-qt/AutoUpdaterDialog.cpp index f62a319d22..93349a9195 100644 --- a/pcsx2-qt/AutoUpdaterDialog.cpp +++ b/pcsx2-qt/AutoUpdaterDialog.cpp @@ -753,9 +753,13 @@ bool AutoUpdaterDialog::processUpdate(const std::vector& data, QProgressDial } // Execute new appimage. + QStringList arguments{QStringLiteral("-updatecleanup")}; + if (EmuConfig.IsPortableMode) + arguments << QStringLiteral("-portable"); + QProcess* new_process = new QProcess(); new_process->setProgram(qappimage_path); - new_process->setArguments(QStringList{QStringLiteral("-updatecleanup")}); + new_process->setArguments(arguments); if (!new_process->startDetached()) { reportError("Failed to execute new AppImage.");