Repository navigation
fix(helpers): detect a DAW by the bridge it has loaded - #17
Merged
Merged
Conversation
The check for an open DAW looked for processes named bitwig or reaper. Every other DAW passed it, and an idle Bitwig blocked force close and the vendor setup flows with nothing at risk. Refuse when a process has libyabridge mapped. A host cannot load a published plug-in without it, so this covers any DAW and its plug-in sandbox, with no list of names. A DAW with nothing loaded no longer blocks anything. Plugg cannot detect that idle DAW, so helpers and Help say to close the DAW before installing, and the drop area adds a note while plug-ins are loaded. The scan walks every process's memory map, so it runs on its own thread every three seconds.
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Plugg now decides a DAW is in use by whether a process has the bridge library mapped, not by looking for processes named
bitwigorreaper. That check guards force close and the UA Connect, Plugin Alliance, Softube and iLok flows.A DAW with no Windows plug-ins loaded no longer blocks those flows. Plugg cannot see that DAW at all, so helpers and Help now say to close your DAW before installing. The drop area shows a note while plug-ins are loaded, and stays as it was otherwise.
The refusal also used to talk about opening a helper during a stop. It now reads "Close your DAW first. It has Windows plug-ins loaded."
Evidence
mydawthat loaded the reallibyabridge-vst3.sowas found, andrequire_idle_desktoprefused. With nothing loaded, the scan found nothing.BitwigPluginHosthad the bridge mapped with Kontakt loaded. An idle Bitwig did not.Not tested:
aww-plugin-hostwith a plug-in loaded.For code:
python3 scripts/check-contribution.pyscripts/test-ui.pypasses.Safety
plugg/licensing.pyand callslicensing.guard. It adds no such operation.