Skip to content

Commit 0c363ae

Browse files
committed
use debug.txt instead of debug; add pref to disable system proxy
1 parent 8e3f083 commit 0c363ae

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

app/src/processing/app/Base.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,13 @@ static private void createAndShowGUI(String[] args) {
141141
Platform.init();
142142

143143
// Set the debug flag based on a file being present in the settings folder
144-
File debugFile = getSettingsFile("debug");
144+
File debugFile = getSettingsFile("debug.txt");
145+
/*
145146
if (debugFile.isDirectory()) {
146147
// if it's a directory, it's a leftover from older releases, clear it
147148
Util.removeDir(debugFile);
148-
} else if (debugFile.exists()) {
149+
} else*/
150+
if (debugFile.exists()) {
149151
DEBUG = true;
150152
}
151153

app/src/processing/app/Preferences.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ static public void init() {
6868
load(Base.getLibStream(DEFAULTS_FILE));
6969
} catch (Exception e) {
7070
Messages.showError(null, "Could not read default settings.\n" +
71-
"You'll need to reinstall Processing.", e);
71+
"You'll need to reinstall Processing.", e);
7272
}
7373

7474
// Clone the defaults, then override any them with the user's preferences.
@@ -109,9 +109,12 @@ static public void init() {
109109
PApplet.useNativeSelect =
110110
Preferences.getBoolean("chooser.files.native"); //$NON-NLS-1$
111111

112-
// Use the system proxy settings by default
113-
// https://github.com/processing/processing/issues/2643
114-
System.setProperty("java.net.useSystemProxies", "true");
112+
// Adding option to disable this in case it's getting in the way
113+
if (get("proxy.system").equals("true")) {
114+
// Use the system proxy settings by default
115+
// https://github.com/processing/processing/issues/2643
116+
System.setProperty("java.net.useSystemProxies", "true");
117+
}
115118

116119
// Set HTTP, HTTPS, and SOCKS proxies for individuals
117120
// who want/need to override the system setting

build/shared/lib/defaults.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,8 @@ proxy.socks.port=
347347
# Example of usage (replace 'http' with 'https' or 'socks' as needed)
348348
#proxy.http.host=proxy.example.com
349349
#proxy.http.port=8080
350+
# Whether to use the system proxy by default
351+
proxy.system=true
350352

351353
# PDE X
352354
pdex.autoSave.autoSaveByDefault=true

todo.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ X https://github.com/processing/processing/issues/3123
99
X https://github.com/processing/processing/issues/4735
1010
X move the DEBUG flag into an external file or preferences.txt
1111
X will help us with debugging w/ others as well
12+
X change to debug.txt; too confusing with the folder thing
1213
X replace java.util.logging code with built-in logging
1314
_ blank window on startup where the "welcome" screen should be
1415
_ https://github.com/processing/processing/issues/3933

0 commit comments

Comments
 (0)