Skip to content

Commit

Permalink
Add "fix" df command exiting with bogus status code
Browse files Browse the repository at this point in the history
This commit addresses the issue documented in flatpak/xdg-desktop-portal#512
by using `df -x fuse.portal` as opposed to just `df`.

Fix sourced from:
https://www.mail-archive.com/desktop-packages%40lists.launchpad.net/msg651194.html

This appears to have come about because of an issue introduced
when upgrading to Linux Mint 20.3.

Signed-off-by: AKP <tom@tdpain.net>
  • Loading branch information
codemicro committed Mar 7, 2022
1 parent 313701f commit 5675c40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/providers/disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func NewDisk(mountPath string, okThreshold, warningThreshold float32) i3bar.Bloc
}

func (g *Disk) getAvailable() (float32, error) {
cmdout, err := runCommand("df")
cmdout, err := runCommand("df", "-x", "fuse.portal")
if err != nil {
return 0, err
}
Expand Down

0 comments on commit 5675c40

Please sign in to comment.