From 8103dd377c74d5cc8cce365fb6ad46f172a167fd Mon Sep 17 00:00:00 2001 From: Caleb Bassi Date: Tue, 17 Jul 2018 13:36:52 -0700 Subject: Fix bug when partition mountpoint has a space --- src/widgets/disk.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/widgets/disk.go b/src/widgets/disk.go index 94bbaba..9ee766c 100644 --- a/src/widgets/disk.go +++ b/src/widgets/disk.go @@ -58,9 +58,10 @@ func (self *Disk) update() { for _, Part := range Partitions { device := strings.Replace(Part.Device, "/dev/", "", -1) if _, ok := self.Partitions[device]; !ok { + mountPoint := strings.Replace(Part.Mountpoint, "\\040", " ", -1) self.Partitions[device] = &Partition{ Device: device, - Mount: Part.Mountpoint, + Mount: mountPoint, } } } -- cgit v1.2.3