From daa67d7cb3102d99f6e2a285fb5818efdb41fecc Mon Sep 17 00:00:00 2001 From: benfry Date: Mon, 13 Sep 2004 20:26:43 +0000 Subject: [PATCH] p5 home folder not properly being created --- app/PdeBase.java | 17 ++++++++++------- todo.txt | 6 +++++- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/app/PdeBase.java b/app/PdeBase.java index 1b5e94583..4f706d995 100644 --- a/app/PdeBase.java +++ b/app/PdeBase.java @@ -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; } diff --git a/todo.txt b/todo.txt index 0edabb15b..77ca796f8 100644 --- a/todo.txt +++ b/todo.txt @@ -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