Changeset 14177 in josm for trunk/src/org/openstreetmap/josm/tools/PlatformHookUnixoid.java
- Timestamp:
- 2018-08-22T02:41:48+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/PlatformHookUnixoid.java
r14148 r14177 49 49 @Override 50 50 public void preStartupHook() { 51 // See #12022 - Disable GNOME ATK Java wrapper as it causes a lot of serious trouble 52 if ("org.GNOME.Accessibility.AtkWrapper".equals(getSystemProperty("assistive_technologies"))) { 53 System.clearProperty("assistive_technologies"); 51 // See #12022, #16666 - Disable GNOME ATK Java wrapper as it causes a lot of serious trouble 52 if (isDebianOrUbuntu()) { 53 if (Utils.getJavaVersion() >= 9) { 54 // TODO: find a way to disable ATK wrapper on Java >= 9 55 // We should probably be able to do that by embedding a no-op AccessibilityProvider in our jar 56 // so that it is loaded by ServiceLoader without error 57 // But this require to compile at least one class with Java 9 58 } else { 59 // Java 8 does a simple Class.newInstance() from system classloader 60 Utils.updateSystemProperty("javax.accessibility.assistive_technologies", "java.lang.Object"); 61 } 54 62 } 55 63 }
Note:
See TracChangeset
for help on using the changeset viewer.