From fb295215d9459e9240013f0f594583c7bd2ca527 Mon Sep 17 00:00:00 2001 From: Tulip Blossom Date: Wed, 4 Dec 2024 19:46:34 -0300 Subject: [PATCH] fix: rootful distroboxes not working --- drv/distrobox.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drv/distrobox.go b/drv/distrobox.go index de4ff21..958dfa1 100644 --- a/drv/distrobox.go +++ b/drv/distrobox.go @@ -2,7 +2,6 @@ package drv import ( "fmt" - "os/exec" "github.com/ublue-os/uupd/lib" ) @@ -67,8 +66,7 @@ func (up *DistroboxUpdater) Update() (*[]CommandOutput, error) { // TODO: add env support for Flatpak and Distrobox updaters lib.ChangeTrackerMessageFancy(*up.Tracker.Writer, up.Tracker.Tracker, up.Tracker.Progress, lib.TrackerMessage{Title: up.Config.Title, Description: up.Config.Description}) - flatpakCmd := exec.Command("/usr/bin/distrobox", "upgrade", "-a") - out, err := flatpakCmd.CombinedOutput() + out, err := lib.RunUID(0, []string{"/usr/bin/distrobox", "upgrade", "-a"}, nil) tmpout := CommandOutput{}.New(out, err) if err != nil { tmpout.SetFailureContext("System Distroboxes")