Skip to content

Support for alternate compatibility tools which can share plugins - #342

Open
natbro wants to merge 2 commits into
NotProtonNot:mainfrom
natbro:alt-compat-tools
Open

natbro wants to merge 2 commits into
NotProtonNot:mainfrom
natbro:alt-compat-tools

Conversation

@natbro

@natbro natbro commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

NotProton does the main hook and adjustment to enable alternate compatibility tools on macOS Steam, while also configuring a compatibility tool for doing "from_oslist":"windows" -> "to_oslist":"macos" compatibility using CrossOver.

This PR has a few commits that make non-intrusive-to-default-crossover changes supporting additional compatibility tools with other "from_oslist" -> "to_oslist" configurations and it allows them to share installed NotProton plug-ins when appropriate.

It does this by:

  • making sure environment variables are passed through to arbitrary tools via /usr/bin/env FOO=bar in the advanced launch options rather than env FOO=bar which can lose environment variables for some types of ways Steam launches alternate tools
  • formalizing a protocol which matches its own usage: passing NOTPROTON_PLUGIN_LIBS=... to other compatibility tools via the environment which they can turn into DYLD_INSERT_LIBRARY or other injection techniques appropriate for their launches. NotProton already does this within it's game launching stage.

It also now installs and registers a "from_oslist":"macos" -> "to_oslist":"macos" compatibility tool called Native (with plugins) which allows you to use useful plugins in your native macOS steam game launches. There are many types of plugins that can be useful for native games as well.

@NotProtonNot

Copy link
Copy Markdown
Owner

Merged the bulk of this. 958b4cc needs some work.

@natbro

natbro commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

lmk what you bumped into and I missed when we're next overlapping awake :)

A game with a mac build runs without a runner, so it never saw a plugin. Steam
intersects a tool's from_oslist against the app's platform mask, so this one
declares macos and runs a shim with no Wine in it.

The shim joins the plugin dylibs the panel already writes as
NOTPROTON_PLUGIN_LIBS to Steam's overlay and hands the pair to the game: under
both DYLD_INSERT_LIBRARIES and STEAM_DYLD_INSERT_LIBRARIES, since a command that
is a script restores the insert itself once bash has scrubbed DYLD_*, and through
open --env when the command is an app bundle rather than an executable.
A tool's folder name as before, or now the flavor of the layer it runs the guest
through -- rosetta, fex, native -- with a bare * for a plugin that runs anywhere.
Saying nothing means rosetta, inherited down a depends chain so a feature declares
once for the rows beneath it. The launch already read its own flavor; the panel
learns every tool's from np_compat_tool_flavors, the native tool included.
@natbro

natbro commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

per our offline convo, the existing tools field of the .conf syntax had an implied default (* = all) than what is ideal, so dropping tool and shifting to compatible_with A tool's folder name as before, or now the flavor of the layer it runs the guest
through -- rosetta, fex, native -- with a bare * for a plugin that runs anywhere.
Saying nothing means rosetta, inherited down a depends chain so a feature declares
once for the rows beneath it. The launch already read its own flavor; the panel
learns every tool's from np_compat_tool_flavors, the native tool included.

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.

2 participants