Skip to content

Commit

Permalink
Merge pull request #29 from tulilirockz/fix-distrobox-rootful
Browse files Browse the repository at this point in the history
fix: rootful distroboxes not working
  • Loading branch information
gerblesh authored Dec 4, 2024
2 parents 9fe5633 + fb29521 commit a0430fc
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 a0430fc

Please sign in to comment.