From b5dca3b9c3eb615fd30b1e9e02fcbe126207ee3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole-Andr=C3=A9=20Rodlie?= Date: Sat, 17 Aug 2024 18:56:38 +0200 Subject: [PATCH] Update appsupport.cpp isAppPortable(): Also check if app dir is writable, can't run in portable mode if the folder is not writable. --- src/core/appsupport.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/appsupport.cpp b/src/core/appsupport.cpp index 2d6483394..eb5521be5 100644 --- a/src/core/appsupport.cpp +++ b/src/core/appsupport.cpp @@ -680,7 +680,8 @@ const QPair AppSupport::hasWriteAccess() bool AppSupport::isAppPortable() { - return QFile::exists(QString("%1/portable.txt").arg(getAppPath())); + const QString path = getAppPath(); + return QFile::exists(QString("%1/portable.txt").arg(path)) && QFileInfo(path).isWritable(); } bool AppSupport::hasXDGDesktopIntegration()