move location of prefs and sketchbook, fixed nasty bugs

This commit is contained in:
benfry
2004-07-16 06:32:00 +00:00
parent 5bc4f51c4b
commit 666309340a
6 changed files with 60 additions and 27 deletions

View File

@@ -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);