asticode / go-astilectron

Build cross platform GUI apps with GO and HTML/JS/CSS (powered by Electron)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

run with root privilege on debian shows errors

passerbyo opened this issue · comments

when i excuse go main.go

go-astilectron/example/main.go

it shows privilege errors on root account linux system.

2022/07/15 05:30:45 removing /root/go/GOCODE/src/github.com/asticode/go-astilectron/example/example/vendor/electron-linux-amd64-v11.4.3.zip
2022/07/15 05:30:45 Listening...
2022/07/15 05:30:45 Executing...
2022/07/15 05:30:45 Starting cmd /root/go/GOCODE/src/github.com/asticode/go-astilectron/example/example/vendor/electron-linux-amd64/electron /root/go/GOCODE/src/github.com/asticode/go-astilectron/example/example/vendor/astilectron/main.js 127.0.0.1:42633 false
2022/07/15 05:30:45 Stderr says: [8156:0715/053045.892228:FATAL:electron_main_delegate.cc(253)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
2022/07/15 05:30:45 '/root/go/GOCODE/src/github.com/asticode/go-astilectron/example/example/vendor/electron-linux-amd64/electron' exited with code: -1
2022/07/15 05:30:45 App has crashed
2022/07/15 05:30:45 Stopping...
2022/07/15 05:30:45 astikit: stopping worker...
2022/07/15 05:30:45 main: creating window failed: context canceled
exit status 1```

为什么不提供解决方法呢?