Can I store application settings per EelMachine?

I use local application settings to store paths.
Because these paths are only valid on the local machine, they are configured to not share (i.e. to be non-roaming).

I’m migrating to Eel.
Now, what is the best way to handle such per-machine settings?

  • Converting to project settings would force to user to set this up for every project. I don’t want that.
  • Project settings may end up in VCS. I don’t want that. A path of one machine won’t be valid for other users.
  • Application settings are stored outside the Eel machine and would apply to other projects, which are located on the local machine or in other EelMachine containers.

Is there a way to store application settings per EelMachine?

Or I there another solution I’m missing here?

Update: After some investigation I found PyCustomExecutablePaths which is similar to what I want.
But it’s using the @Internal property EelMachine.internalName which makes it impossible to use for 3rd-party plugins :pensive_face:

Thanks!

Here’s what my research agent spilled out as a workaround since this there’s no public API currently. Take this with the necessary grain of salt.

For path settings, the simplest workaround is to store the full IDE-side NIO paths, rather than a map keyed by machine ID.

  1. Keep an application-level PersistentStateComponent with RoamingType.LOCAL.
  2. Store each selected path using Path.toString(), preserving its environment prefix, for example, \\wsl.localhost\Ubuntu\usr\bin\tool, not /usr/bin/tool.
  3. When a project needs the setting, reconstruct the stored paths with Path.of(...) and select the one belonging to the project’s machine. The public, experimental EelMachine.ownsPath(path) supports this check.
  4. When saving a replacement, replace the matching entry and retain entries for other machines.

This shares settings across projects without using internalName or writing into project files.

Limitation: this depends on the platform recognizing the stored path’s environment. Handle unavailable or recreated environments as stale settings. It is a practical workaround for paths, not a general persistent machine-ID solution.