File tree 3 files changed +8
-6
lines changed
app/src/processing/app/platform
3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -39,9 +39,11 @@ public class LinuxPlatform extends DefaultPlatform {
39
39
public void initBase (Base base ) {
40
40
super .initBase (base );
41
41
42
- // Set x11 WM_CLASS property which is used as the application
43
- // name by Gnome3 and other window managers.
42
+ // Set X11 WM_CLASS property which is used as the application
43
+ // name by Gnome 3 and other window managers.
44
44
// https://github.com/processing/processing/issues/2534
45
+ // For Java 17, this hack requires an addition to the command line:
46
+ // --add-opens=java.desktop/sun.awt.X11=ALL-UNNAMED
45
47
try {
46
48
Toolkit xToolkit = Toolkit .getDefaultToolkit ();
47
49
java .lang .reflect .Field awtAppClassNameField =
Original file line number Diff line number Diff line change 1
1
[Desktop Entry]
2
2
Type=Application
3
- Name=Processing IDE
4
- GenericName=Processing IDE
3
+ Name=Processing
4
+ GenericName=Processing
5
5
Comment=Open-source software prototyping platform
6
6
Exec=<BINARY_LOCATION>
7
7
Icon=<ICON_NAME>
8
8
Terminal=false
9
9
Categories=Development;IDE;Programming;
10
10
MimeType=text/x-processing;
11
11
Keywords=sketching;software;animation;programming;coding;
12
- StartupWMClass=processing-app-Base
12
+ StartupWMClass=processing-app-ui-Splash
Original file line number Diff line number Diff line change 113
113
fi
114
114
cd " $APPDIR "
115
115
116
- java -Djna.nosys=true -Dpython.console.encoding=UTF-8 -Xmx512m processing.app.ui.Splash " $SKETCH " &
116
+ java -Djna.nosys=true -Dpython.console.encoding=UTF-8 -Xmx512m --add-opens=java.desktop/sun.awt.X11=ALL-UNNAMED processing.app.ui.Splash " $SKETCH " &
117
117
fi
You can’t perform that action at this time.
0 commit comments