Skip to content

Commit

Permalink
Update appsupport.cpp
Browse files Browse the repository at this point in the history
isAppPortable(): Also check if app dir is writable, can't run in portable mode if the folder is not writable.
  • Loading branch information
rodlie committed Aug 17, 2024
1 parent c6584b9 commit b5dca3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/appsupport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,8 @@ const QPair<QStringList, bool> 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()
Expand Down

0 comments on commit b5dca3b

Please sign in to comment.