Skip to content

Commit b860cc2

Browse files
Fabian MüllerTheOneRing
Fabian Müller
authored andcommitted
Improve "update available" message in AppImages
1 parent 0d107ef commit b860cc2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/gui/updater/ocupdater.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,13 @@ QString OCUpdater::statusString() const
153153
case DownloadTimedOut:
154154
return tr("Could not check for new updates.");
155155
case UpdateOnlyAvailableThroughSystem:
156+
#ifdef Q_OS_LINUX
157+
// https://docs.appimage.org/packaging-guide/environment-variables.html
158+
// TODO: update once AppImageUpdate has been implemented
159+
if (qEnvironmentVariableIsSet("APPIMAGE")) {
160+
return tr("New %1 available. Please click <a href='%2'>here</a> to download the new AppImage manually.").arg(updateVersion, _updateInfo.web());
161+
}
162+
#endif
156163
return tr("New %1 available. Please use the system's update tool to install it.").arg(updateVersion);
157164
case CheckingServer:
158165
return tr("Checking update server...");

0 commit comments

Comments
 (0)