p5 home folder not properly being created

This commit is contained in:
benfry
2004-09-13 20:26:43 +00:00
parent bd122151e8
commit daa67d7cb3
2 changed files with 15 additions and 8 deletions

View File

@@ -129,19 +129,22 @@ public class PdeBase {
static public File getProcessingHome() {
File home = new File(System.getProperty("user.home"));
File phome = null;
if (PdeBase.platform == PdeBase.MACOSX) {
// on macosx put the sketchbook in the "Documents" folder
return new File(home, "Documents" + File.separator + "Processing");
phome = new File(home, "Documents" + File.separator + "Processing");
} else if (PdeBase.platform == PdeBase.WINDOWS) {
// on windows put the sketchbook in the "My Documents" folder
return new File(home, "My Documents" + File.separator + "Processing");
}
phome = new File(home, "My Documents" + File.separator + "Processing");
// for linux et al, make a dot folder
// if people don't like things being buried, they can move the sketches
// but the prefs will stay hidden in the dot folder
File phome = new File(home, ".processing");
} else {
// for linux et al, make a dot folder
// if people don't like things being buried, they can move the sketches
// but the prefs will stay hidden in the dot folder
phome = new File(home, ".processing");
}
if (!phome.exists()) phome.mkdirs();
return phome;
}

View File

@@ -54,7 +54,7 @@ X several menu changes as discussed with casey
X (capitalization, export/export app, tools)
X add preference for showing library stuff
040913
040913 morning
X figure out why user libraries not being added
X in lib mode, show internal libraries as part of the 'open' menu
X make a note that p5 has to be restarted for libs
@@ -62,6 +62,10 @@ X import all libraries into classpath
X all libs found during sketchbook build + all libs in libraries
X this means sketchbook menu will need to be rebuilt after lib build
X append the user's classpath to the end of that
040913 afternoon
X "Processing" folder not properly created on new install
_ when running externally, build into sketch folder
_ after export of library, rebuild "import library" menu