mirror of
https://github.com/processing/processing4.git
synced 2026-02-14 10:55:38 +01:00
move location of prefs and sketchbook, fixed nasty bugs
This commit is contained in:
@@ -74,6 +74,8 @@ public class PdeSketchbook {
|
||||
if (PdePreferences.get("sketchbook.path") == null) {
|
||||
// by default, set default sketchbook path to the user's
|
||||
// home folder with 'sketchbook' as a subdirectory of that
|
||||
|
||||
/*
|
||||
File home = new File(System.getProperty("user.home"));
|
||||
|
||||
if (PdeBase.platform == PdeBase.MACOSX) {
|
||||
@@ -84,6 +86,8 @@ public class PdeSketchbook {
|
||||
// on windows put the sketchbook in the "My Documents" folder
|
||||
home = new File(home, "My Documents");
|
||||
}
|
||||
*/
|
||||
File home = PdePreferences.getProcessingHome();
|
||||
|
||||
String folderName = PdePreferences.get("sketchbook.name.default");
|
||||
//System.out.println("home = " + home);
|
||||
|
||||
Reference in New Issue
Block a user