I'm using ZYPAK_LD_PRELOAD to hook an electron executable for use in my mod loader library https://github.com/meguminsama/electron-hook https://github.com/meguminsama/moonlight-launcher
Unfortunately, it looks like it only works initially, because zypak is unsetenving LD_PRELOAD after the initial startup, so it's not persisted across multiple processes, as most electron apps do.
To fix this, I have a workaround where I hook unsetenv to re-insert my LD_PRELOAD. It would be great if this could be fixed in zypak itself though.
I'm using ZYPAK_LD_PRELOAD to hook an electron executable for use in my mod loader library https://github.com/meguminsama/electron-hook https://github.com/meguminsama/moonlight-launcher
Unfortunately, it looks like it only works initially, because zypak is
unsetenving LD_PRELOAD after the initial startup, so it's not persisted across multiple processes, as most electron apps do.To fix this, I have a workaround where I hook
unsetenvto re-insert my LD_PRELOAD. It would be great if this could be fixed in zypak itself though.