Skip to content

Commit 9ed6dee

Browse files
committed
look into dock name issue, find that it is a Java bug...
1 parent 6e9a8e0 commit 9ed6dee

4 files changed

Lines changed: 18 additions & 14 deletions

File tree

core/src/processing/core/PApplet.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10459,6 +10459,9 @@ static public void runSketch(final String[] args,
1045910459
// Remove 60fps limit on the JavaFX "pulse" timer
1046010460
System.setProperty("javafx.animation.fullspeed", "true");
1046110461

10462+
// Doesn't seem to do anything helpful here (that can't be done via Runner)
10463+
//System.setProperty("com.apple.mrj.application.apple.menu.about.name", "potato");
10464+
1046210465
Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
1046310466
public void uncaughtException(Thread t, Throwable e) {
1046410467
e.printStackTrace();

core/todo.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
0261 (3.3.4 or 3.4)
22

3-
_ set the application name to sketch name (not processing.core.PApplet)
4-
_ System.setProperty("com.apple.mrj.application.apple.menu.about.name", ...)
5-
_ -Xdock:name=<application name>
6-
_ -Xdock:icon=<path to icon file>
7-
83
_ WARNING: GL pipe is running in software mode (Renderer ID=0x1020400)
94
_ is this coming from us? if so, need to provide actions
105

java/src/processing/mode/java/runner/Runner.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,9 +341,12 @@ protected StringList getMachineParams() {
341341
}
342342

343343
if (Platform.isMacOS()) {
344+
// This successfully sets the application menu name,
345+
// but somehow, not the dock name itself.
344346
params.append("-Xdock:name=" + build.getSketchClassName());
345-
// params.add("-Dcom.apple.mrj.application.apple.menu.about.name=" +
346-
// sketch.getMainClassName());
347+
// No longer needed / doesn't seem to do anything differently
348+
//params.append("-Dcom.apple.mrj.application.apple.menu.about.name=" +
349+
// build.getSketchClassName());
347350
}
348351
// sketch.libraryPath might be ""
349352
// librariesClassPath will always have sep char prepended

todo.txt

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ X https://github.com/processing/processing/pull/5044
1919
_ should ant run launch the .app so that launchsvcs stuff works properly?
2020

2121
_ sketch.properties not being written if initial mode is p5.js?
22+
_ when creating a sketch within non-Java mode, should write the settings file
23+
_ so that it re-loads in the proper environment
24+
_ remove sketch.properties when moving back to the default?
25+
_ or can we not do this, because it's used to set the 'next' mode
26+
2227
_ what to double-click when opening p5 projects
2328
_ lack of a project file makes this a pain
2429
_ dropping a sketch folder onto the PDE should also be implemented
@@ -31,6 +36,9 @@ _ https://github.com/processing/processing/issues/3987
3136
_ also see several notes below re: examples
3237
_ how are file associations handled in Linux? (for .pde, .psk)
3338

39+
_ add means to import .zip files from file/url into sketchbook, library, etc.
40+
_ super easy given current code implementation, might help usability
41+
3442
_ EventQueue problems with "could not find sketch size" message
3543
_ https://github.com/processing/processing/issues/4893
3644
_ https://github.com/processing/processing/issues/5030
@@ -40,20 +48,13 @@ _ unzipping the app takes forever
4048
_ see the 'examples' section below
4149

4250
_ untitled folders are stored in temp folder
43-
4451
_ clean up /tmp folders used during build
4552
_ https://github.com/processing/processing/issues/1896
4653
_ don't let people into the /tmp folder for sketches
4754
o don't use tmp folder for sketches?
4855
_ restrict more things like "show sketch folder"
4956
_ don't allow adding files w/o saving
5057
_ others?
51-
_ when creating a sketch within non-Java mode, should write the settings file
52-
_ so that it re-loads in the proper environment
53-
_ remove sketch.properties when moving back to the default?
54-
_ or can we not do this, because it's used to set the 'next' mode
55-
_ add means to import .zip files from file/url into sketchbook, library, etc.
56-
_ super easy given current code implementation, might help usability
5758

5859

5960
contrib
@@ -944,6 +945,8 @@ _ this may already work with SingleInstance stuff
944945

945946
DIST / Mac OS X
946947

948+
_ Java bug prevents us from setting the dock name of a sketch run from the PDE
949+
_ https://github.com/processing/processing/issues/5045
947950
_ client properties
948951
_ https://developer.apple.com/library/mac/technotes/tn2007/tn2196.html
949952
_ built-in images: http://nadeausoftware.com/articles/2008/12/mac_java_tip_how_access_mac_specific_nsimage_icons

0 commit comments

Comments
 (0)