feat: begin permission delegation
This commit is contained in:
@@ -2,6 +2,7 @@ package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
"os/user"
|
||||
|
||||
"fyne.io/fyne/v2"
|
||||
"fyne.io/fyne/v2/app"
|
||||
@@ -46,6 +47,12 @@ func main() {
|
||||
w.Resize(windowSize)
|
||||
w.SetIcon(iconResource)
|
||||
|
||||
user, err := user.Current()
|
||||
if err != nil {
|
||||
log.Fatal("Unable to determine user")
|
||||
}
|
||||
log.Println(user.Name, user.Username)
|
||||
|
||||
cfg, ok := readConfig()
|
||||
if !ok {
|
||||
dialog.ShowInformation("Failed to initialize", "Failed to read or unmarshal the raspis.yaml", w)
|
||||
|
||||
Reference in New Issue
Block a user