Fix Windows binary (.exe) to be compatible with Wine (for *BSD + other)

COMPATIBILITY REQUEST
Make the next 32-bit Windows binary (.exe) compatible with Wine 5 & 6
- - - - -

On FreeBSD 13 (Beta), the most recent Zotero Standalone release (still available for download) that works is 5.0.10 for Windows 32-bit in `i386-wine` or `i386-wine-devel`:
https://www.zotero.org/download/client/dl?channel=release&platform=win32&version=5.0.1

5.0.18, 5.0.2.x, 5.0.3.x, 5.0.4.x, etc. through 5.0.9.x all yield the same error messages:
https://pastebin.com/46f2LWz6

It seems that the issue is related to lgpllibs.dll. If I override or delete this .dll, Zotero starts to open, but then I receive a blank window with `Couldn't load XPCOM`.

Seeing as FreeBSD support as a whole, and other Unix-like OS support for niche use cases such as running Zotero in Wine alongside MS Word, have been recurring topics in these forums for years, I think that resolving the (presumably) minor issue that is preventing the newest versions of Zotero for Windows 32-bit from running in Wine would be a boon to the userbase as a whole.

After all, when Zotero is run within Wine, it works exactly as expected, syncing with native Firefox and OpenOffice or LibreOffice. There is not any *feature* loss -- only *aesthetic* loss.

Whatever is causing this compatibility issue was introduced ca. August-September 2017. I am not a developer, so I am having a hard time narrowing the exact commit that caused the issue, but here is where I have been looking:
https://github.com/zotero/zotero/commits/master?before=c9eb661f255b50af833ae1766a6f384dd5fba1d5+1896&branch=master

***This commit from September 11, 2017 specifically relates to XPCOM:
https://github.com/zotero/zotero/commit/33128d1f5924c1f3dac3c8dac1f8219d282c6372

And these two commits also from shortly after 5.0.10 relate to launching the application:
https://github.com/zotero/zotero/commit/c59ae5cf40e497a6c1ba2dcf5ce23716f476dd0f
https://github.com/zotero/zotero/commit/dae0986b9bec5a2e1008fa3b38fba8d0fe57551c

- - - - -

Many thanks for your attention to this matter.
Sign In or Register to comment.