Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't load libsignal_jni in windows env #484 #485

Closed
wants to merge 1 commit into from

Conversation

ClementBareth
Copy link

Copy link
Contributor

@jrose-signal jrose-signal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for picking this up! This has been broken since, uh, forever, but since libsignal_jni is primarily used for the Signal server and Android app, and none of the server and Android developers are doing their day-to-day work on Windows, we've been letting it slip by.

It's a little trickier than what you have here, because the canonical Windows library name we've been shipping is "signal_jni.dll", not "libsignal_jni.dll". But that's just making the check cover the whole filename rather than just the extension.

String extension;
if (osName.startsWith("mac os")) {
extension = ".dylib";
} else if(osName.contains("win")) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does startsWith not work? Seems good to keep the check narrow.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the startsWIth should work indeed

@jrose-signal
Copy link
Contributor

(closed due to age and no pressing need from within Signal, anyone should feel free to pick it up and finish it off, along with testing on a Windows machine)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants