1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00
This commit is contained in:
Mike Lloyd
2018-06-11 09:38:33 -06:00
626 changed files with 123221 additions and 520 deletions

View File

@@ -22,7 +22,8 @@ func NewSystemInfo() *SystemInfo {
var cmd *exec.Cmd
switch runtime.GOOS {
case "linux":
cmd = exec.Command("uname -a", arg...)
arg = append(arg, "-a")
cmd = exec.Command("lsb_release", arg...)
case "darwin":
cmd = exec.Command("sw_vers", arg...)
default:
@@ -33,7 +34,6 @@ func NewSystemInfo() *SystemInfo {
for _, row := range strings.Split(raw, "\n") {
parts := strings.Split(row, ":")
if len(parts) < 2 {
continue
}

View File

@@ -33,10 +33,6 @@ func NewWidget(date, version string) *Widget {
}
func (widget *Widget) Refresh() {
if widget.Disabled() {
return
}
widget.UpdateRefreshedAt()
widget.View.SetText(