From dc30b3197fa4fcd084ca4e2ed38c703f8dbdc1cc Mon Sep 17 00:00:00 2001 From: Ben Fry Date: Sun, 21 Jun 2015 21:21:02 -0400 Subject: [PATCH] home icon too hokey in the Recent menu --- app/src/processing/app/Recent.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/app/src/processing/app/Recent.java b/app/src/processing/app/Recent.java index a9e54d1c1..424b8d9f2 100644 --- a/app/src/processing/app/Recent.java +++ b/app/src/processing/app/Recent.java @@ -177,7 +177,16 @@ public class Recent { if (purtyPath == null) { String homePath = System.getProperty("user.home"); if (recPath.startsWith(homePath)) { - purtyPath = "\u2302 \u2192 " + recPath.substring(homePath.length() + 1); + // Not localized, but this is gravy. It'll work on OS X & EN Windows + String desktopPath = homePath + File.separator + "Desktop"; + if (recPath.startsWith(desktopPath)) { + purtyPath = "Desktop \u2192 " + recPath.substring(desktopPath.length() + 1); + } else { + //purtyPath = "\u2302 \u2192 " + recPath.substring(homePath.length() + 1); + //purtyPath = "Home \u2192 " + recPath.substring(homePath.length() + 1); + String userName = new File(homePath).getName(); + purtyPath = userName + " \u2192 " + recPath.substring(homePath.length() + 1); + } } else { purtyPath = recPath; }