diff --git a/linuxstatus/linuxloop.go b/linuxstatus/linuxloop.go index 44946c6..fbbe653 100644 --- a/linuxstatus/linuxloop.go +++ b/linuxstatus/linuxloop.go @@ -5,6 +5,8 @@ package linuxstatus import ( + "os" + "os/user" "strconv" "go.wit.com/log" @@ -30,6 +32,12 @@ func linuxLoop() { } // me.IPv6.SetText(all) + user, _ := user.Current() + log.Println("os.Getuid =", user.Username, os.Getuid()) + if (me.uid != nil) { + me.uid.Set(user.Username + " (" + strconv.Itoa(os.Getuid()) + ")") + } + /* processName := getProcessNameByPort(53) fmt.Println("Process with port 53:", processName)