Managed ComfyUI picks up Comfy-Desktop shared models/input/output automatically

This commit is contained in:
mram
2026-09-21 22:34:10 +02:00
parent 45bc9fe27c
commit 507af1dbff
4 changed files with 65 additions and 2 deletions
+9
View File
@@ -24,6 +24,8 @@ import (
"golang.org/x/sys/windows"
"golang.org/x/sys/windows/svc"
"golang.org/x/sys/windows/svc/mgr"
"gpu-turnstile/internal/supervise"
)
// Name is the Windows service name.
@@ -382,6 +384,13 @@ func grantAll(exe, configPath string) error {
return err
}
}
// Comfy-Desktop keeps models/input/output in a shared dir next
// to the install; the managed instance writes output there.
if shared := supervise.DesktopSharedDir(comfyDir); shared != "" {
if err := grantAccessTree(shared, "(OI)(CI)(M)"); err != nil {
return err
}
}
}
}
return nil