aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorlawl <github@dumbinter.net>2021-02-03 13:33:22 +0100
committerlawl <github@dumbinter.net>2021-02-03 13:33:22 +0100
commit47d8188b3adb4361c125d582ea4c7cbb1e0be581 (patch)
tree168d214dcc1ad7f1ec45ed77c9e41de4e7b171df /main.go
parentfebccb207b518aa73d142acae2befa9d20e427d8 (diff)
downloadnoisetorch-47d8188b3adb4361c125d582ea4c7cbb1e0be581.tar.gz
noisetorch-47d8188b3adb4361c125d582ea4c7cbb1e0be581.zip
Add warning if FS capabilities don't match process capabilities
Diffstat (limited to 'main.go')
-rw-r--r--main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.go b/main.go
index aeb3ad7..7af98b1 100644
--- a/main.go
+++ b/main.go
@@ -199,6 +199,7 @@ func main() {
go paConnectionWatchdog(&ctx)
ctx.haveCapabilities = hasCapSysResource(getCurrentCaps())
+ ctx.capsMismatch = hasCapSysResource(getCurrentCaps()) != hasCapSysResource(getSelfFileCaps())
wnd := nucular.NewMasterWindowSize(0, appName, image.Point{600, 400}, func(w *nucular.Window) {
updatefn(&ctx, w)