Skip to content

fix(helpers): detect a DAW by the bridge it has loaded - #17

Merged
davfre merged 1 commit into
mainfrom
fix/any-daw-check
Oct 31, 2026
Merged

davfre merged 1 commit into
mainfrom
fix/any-daw-check

Conversation

@davfre

@davfre davfre commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

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 bitwig or reaper. 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

  • A stand-in process called mydaw that loaded the real libyabridge-vst3.so was found, and require_idle_desktop refused. With nothing loaded, the scan found nothing.
  • BitwigPluginHost had the bridge mapped with Kontakt loaded. An idle Bitwig did not.
  • I rendered the window with and without the stand-in, and the note appeared only with it.
  • The scan takes about 30 ms with 650 processes, so it runs on its own thread every three seconds and not in the 700 ms refresh.

Not tested: aww-plugin-host with a plug-in loaded.

For code:

  • python3 scripts/check-contribution.py
  • Something that exercises the change specifically. New tests cover a host with any name, a DAW with nothing loaded, an unreadable process and the refusal. scripts/test-ui.py passes.

Safety

  • I did not include installers, licence files, account data, callback URLs, prefixes or downloaded runtimes.
  • I did not copy an activated prefix into a fixture.
  • If this adds an operation that writes inside a Windows environment, it is classified in plugg/licensing.py and calls licensing.guard. It adds no such operation.
  • If this adds a recipe, I have read its report. It adds no recipe.

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.
@davfre
davfre merged commit eac275c into main Oct 31, 2026
5 checks passed
@davfre
davfre deleted the fix/any-daw-check branch October 31, 2026 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant