fix(flatpak): per-user install fallback and real error reporting
Installing through a system-wide remote fails under polkit and, when a
remote exists in both installations, flatpak refuses non-interactive
installs ("Multiple remotes have refs matching"). Retry with an explicit
`--user flathub` target, refresh appstream metadata before giving up on
stale refs, and let update/refresh fall back to the user installation as
well. Expose the last command output through IPackageManager::lastError
and show it in a dialog on failure instead of failing silently.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
7 files changed
+144
-15
No files matched your search
@@ -119,6 +119,10 @@ private:
|
||||
// first available provider when the tag is unknown or empty.
|
||||
IPackageManager* providerFor(const std::string& id) const;
|
||||
|
||||
// Show the provider's last error in a dialog when one is available, so a
|
||||
// failed operation explains itself instead of failing silently.
|
||||
void showProviderError(const QString& title, IPackageManager* provider);
|
||||
|
||||
void setupUI();
|
||||
void setupSidebar();
|
||||
void setupHeader();
|
||||
|
||||
Reference in new issue
Block a user