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

Better handling for the random pi4 errors #1

Open
nedtwigg opened this issue Oct 28, 2021 · 0 comments
Open

Better handling for the random pi4 errors #1

nedtwigg opened this issue Oct 28, 2021 · 0 comments

Comments

@nedtwigg
Copy link
Member

SWT doesn't ship pi4 as of Eclipse 4.21 or 4.20

String propertyName = "SWT_GTK4";
String gtk4 = getEnvironmentalVariable(propertyName);
if (gtk4 != null && gtk4.equals("1")) {
try {
Library.loadLibrary("swt-pi4");
} catch (Throwable e) {
Library.loadLibrary("swt-pi3");
}
} else {
try {
Library.loadLibrary("swt-pi3");
} catch (Throwable e) {
Library.loadLibrary("swt-pi4");
}
}

The pi4 thing was introduced Nov 2018, so maybe 4.10 (released Dec 2018).

db2d0d1

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

No branches or pull requests

1 participant