Prevent nuking socket base dir if not temporary

If `yabridge-host.exe` were somehow to be run with a socket base
directory that's not inside of `$XDG_RUNTIME_DIR`/`/tmp`, then we'll now
warn instead of removing that directory. This should not be necessary,
but in case someone wants to write a wrapper around
`yabridge-host.exe.so` us using a custom `$WINELOADER` then this could
save a lot of headaches.
This commit is contained in:
Robbert van der Helm
2021-02-13 17:53:04 +01:00
parent 2ea3f52632
commit 78a28a679b
2 changed files with 22 additions and 6 deletions
+4
View File
@@ -98,6 +98,10 @@ TODO: Add an updated screenshot with some fancy VST3-only plugins to the readme
and up. The build process now detect which version of Wine is used to build
with, and it then applies the change conditionally to be able to support
building with both older and newer versions of Wine.
- `yabridge-host.exe` will no longer remove the socket directories if they're
outside of a temporary directory. This could otherwise cause a very unpleasant
surprise if someone was passing random arguments to it when for instancing
trying to write a wrapper around `yabridge-host.exe`.
### Fixed