Skip to content

Commit 8e54334

Browse files
committed
update desktop file and try suppressing warning from #207
1 parent 53d6874 commit 8e54334

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

app/src/processing/app/platform/LinuxPlatform.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,11 @@ public class LinuxPlatform extends DefaultPlatform {
3939
public void initBase(Base base) {
4040
super.initBase(base);
4141

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.
4444
// 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
4547
try {
4648
Toolkit xToolkit = Toolkit.getDefaultToolkit();
4749
java.lang.reflect.Field awtAppClassNameField =

build/linux/desktop.template

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[Desktop Entry]
22
Type=Application
3-
Name=Processing IDE
4-
GenericName=Processing IDE
3+
Name=Processing
4+
GenericName=Processing
55
Comment=Open-source software prototyping platform
66
Exec=<BINARY_LOCATION>
77
Icon=<ICON_NAME>
88
Terminal=false
99
Categories=Development;IDE;Programming;
1010
MimeType=text/x-processing;
1111
Keywords=sketching;software;animation;programming;coding;
12-
StartupWMClass=processing-app-Base
12+
StartupWMClass=processing-app-ui-Splash

build/linux/processing

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,5 +113,5 @@ else
113113
fi
114114
cd "$APPDIR"
115115

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" &
117117
fi

0 commit comments

Comments
 (0)