@@ -94,8 +94,6 @@ public class Base {
9494 List <Editor > editors = Collections .synchronizedList (new ArrayList <Editor >());
9595 Editor activeEditor ;
9696
97- static final String portableSketchbookFolder = "sketchbook" ;
98-
9997 static public void main (String args []) throws Exception {
10098 BaseNoGui .initLogger ();
10199
@@ -226,7 +224,7 @@ public Base(String[] args) throws Exception {
226224 if (sketchbookPath == null ) {
227225 File defaultFolder = getDefaultSketchbookFolder ();
228226 if (BaseNoGui .getPortableFolder () != null )
229- Preferences .set ("sketchbook.path" , portableSketchbookFolder );
227+ Preferences .set ("sketchbook.path" , BaseNoGui . getPortableSketchbookFolder () );
230228 else
231229 Preferences .set ("sketchbook.path" , defaultFolder .getAbsolutePath ());
232230 if (!defaultFolder .exists ()) {
@@ -1865,7 +1863,7 @@ static public File getPortableFolder() {
18651863
18661864
18671865 static public String getPortableSketchbookFolder () {
1868- return portableSketchbookFolder ;
1866+ return BaseNoGui . getPortableSketchbookFolder () ;
18691867 }
18701868
18711869
@@ -1891,7 +1889,7 @@ static public File getSketchbookHardwareFolder() {
18911889
18921890 protected File getDefaultSketchbookFolder () {
18931891 if (BaseNoGui .getPortableFolder () != null )
1894- return new File (BaseNoGui .getPortableFolder (), portableSketchbookFolder );
1892+ return new File (BaseNoGui .getPortableFolder (), BaseNoGui . getPortableSketchbookFolder () );
18951893
18961894 File sketchbookFolder = null ;
18971895 try {
0 commit comments