Allow to run flatpak update with sudo (#738)
This change adds the option `flatpak.use_sudo` that allows to update the system-wide installation with sudo. When set to `true` the system-wide installation will be updated with sudo. If set to `false` (default) the update will be run as regular user. This solves the problem where running `flatpak update` on a remote system fails if run as regular user. Fixes #737.
This commit is contained in:
committed by
GitHub
parent
74292ef6d2
commit
2cd1ea6845
@@ -315,7 +315,7 @@ fn run() -> Result<()> {
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
{
|
||||
runner.execute(Step::Flatpak, "Flatpak", || linux::flatpak_update(run_type))?;
|
||||
runner.execute(Step::Flatpak, "Flatpak", || linux::flatpak_update(&ctx))?;
|
||||
runner.execute(Step::Snap, "snap", || linux::run_snap(sudo.as_ref(), run_type))?;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user