fix: x86 Flatpak bundles are refused with a clear message instead of installing and failing to start (#1873)

This commit is contained in:
MaxsTechReview authored and GitHub committed 2026-10-30 19:03:27 -04:00
1 parent 8cf01ebb77
commit 6673a892e2
36 files changed
+133 -2

No files matched your search

@@ -117,7 +117,11 @@ object FlatpakManager {
when (o.optString("e")) {
"op" -> { step = stage(context, o); onProgress(step, overall(o, 0)) }
"progress" -> onProgress(step, overall(o, o.optInt("percent")))
"error" -> { error = o.optString("message"); Log.w(TAG, "$verb $id: $error") }
"error" -> {
error = if (o.optString("code") == "arch") context.getString(R.string.flatpakmgr_wrong_arch, o.optString("id"), o.optString("arch"))
else o.optString("message")
Log.w(TAG, "$verb $id: ${o.optString("message")}")
}
"warning" -> Log.w(TAG, "$verb $id: ${o.optString("message")}")
"done" -> onDone(o)
}