Might it be possible for SbieCtrl or some other component to check for a related SbieSvc.exe (eg by boxname) in the wait state and send a terminate command when the related box is empty or in the closing/deleting phase?
These lingering instances have the same username as that which the program was launched with. As such I don't guess there should be many potential permission issues. This would allow the behavior to remain the same, so that such processes aren't being created and killed constantly, but also allow Sandboxie to cleanup after itself in this scenario as it normally does in others.
Update: Thought about this a bit more and realized I could sortof do this myself already. While it'd be nice for sandboxie to do the check itself to properly clean up...I created some small .bat files and added them under DeleteCommand= for the trouble boxes. I can finally have a clean system with no lingering SbieSvcs or needing to manually check for and kill them.
Example:
Code: Select all
rmdir %1 /q /s
wmic process where "commandline like '%%_DefaultBox_%%'" call terminate