Skip to content

Commit a2b1c2f

Browse files
committed
default to using native file selector on all platforms (#5122)
1 parent 75778b9 commit a2b1c2f

4 files changed

Lines changed: 6 additions & 7 deletions

File tree

build/shared/lib/defaults.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ recent.count = 10
7474

7575
# Default to the native (AWT) file selector where possible
7676
chooser.files.native = true
77-
# native Linux file chooser is atrocious, use Swing instead
78-
chooser.files.native.linux = false
7977

8078

8179
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

core/src/processing/core/PApplet.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,10 @@ public class PApplet implements PConstants {
176176

177177
/**
178178
* Whether to use native (AWT) dialogs for selectInput and selectOutput.
179-
* The native dialogs on Linux tend to be pretty awful. With selectFolder()
180-
* this is ignored, because there is no native folder selector, except on
181-
* Mac OS X. On OS X, the native folder selector will be used unless
182-
* useNativeSelect is set to false.
179+
* The native dialogs on some platforms can be ugly, buggy, or missing
180+
* features. For 3.3.5, this defaults to true on all platforms.
183181
*/
184-
static public boolean useNativeSelect = (platform != LINUX);
182+
static public boolean useNativeSelect = true;
185183

186184
/** The PGraphics renderer associated with this PApplet */
187185
public PGraphics g;

core/todo.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
0262 (3.3.5 or 3.4)
2+
X default to using native select on all platforms
23

34

45
_ shell discussion with gohai

todo.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
0262 (3.3.5 or 3.4)
2+
X use native Linux file choosers by default
3+
X https://github.com/processing/processing/issues/5122
24

35
_ Console window losing text
46
_ https://github.com/processing/processing/issues/5110

0 commit comments

Comments
 (0)