[[protocols]] makes links such as hellonotes:// open your app, and [[file_types]] lets it open files with an extension. Both can repeat. They’re registered for the current user, or for the computer with a machine-wide install.
[[protocols]]
bach.toml
hellonotes://open/123 starts your program with the full link as its argument.
Schemes that belong to Windows or browsers, such as
http or file, are refused. If another program already registered the scheme on a computer, setup leaves it alone.
[[file_types]]
bach.toml
Your app appears under Open with, and opens the file when it’s double-clicked if no other program had claimed that type. Your program receives the file’s path as an argument. Types that run code, such as
.exe, .bat, .ps1 or .lnk, are refused.
Removal
Registry keys Bach creates carry aBachApp mark. Uninstalling removes only marked keys of this app; keys made by other programs are never changed.
These sections don’t apply to the Mac build. A Mac app declares its types in its own Info.plist.