Skip to content

Commit

Permalink
fix: rootful distroboxes not working
Browse files Browse the repository at this point in the history
  • Loading branch information
tulilirockz committed Dec 4, 2024
1 parent 9fe5633 commit fb29521
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drv/distrobox.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package drv

import (
"fmt"
"os/exec"

"github.com/ublue-os/uupd/lib"
)
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit fb29521

Please sign in to comment.