File: 0001-fix-Paths-to-work-for-debian-change-config-dir-from-.patch

package info (click to toggle)
umlet 15.1%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,640 kB
  • sloc: javascript: 58,367; java: 45,636; xml: 2,049; sh: 9; makefile: 5
file content (30 lines) | stat: -rw-r--r-- 1,099 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From: Benjamin Mesing <bensmail@gmx.net>
Date: Sun, 2 Jun 2013 16:11:33 +0200
Subject: - fix Paths to work for debian,
 change config dir from $Home/UMLet to $HOME/.umlet
Forwarded: not-needed

---
 Baselet/src/com/baselet/control/Main.java      | 7 ++-----
 Baselet/src/com/baselet/control/util/Path.java | 6 +++++-
 2 files changed, 7 insertions(+), 6 deletions(-)

--- a/umlet-standalone/src/main/java/com/baselet/standalone/MainStandalone.java
+++ b/umlet-standalone/src/main/java/com/baselet/standalone/MainStandalone.java
@@ -262,14 +262,8 @@ public class MainStandalone {
 	}
 
 	private static void initHomeProgramPath() {
-		String tempPath, realPath;
-		tempPath = Path.executable();
-		tempPath = tempPath.substring(0, tempPath.length() - 1);
-		tempPath = tempPath.substring(0, tempPath.lastIndexOf('/') + 1);
-		if (tempPath.endsWith("/lib/")) {
-			tempPath = tempPath.substring(0, tempPath.length() - "lib/".length());
-		}
-		realPath = new File(tempPath).getAbsolutePath() + "/";
+		// BM fixed path
+		String realPath = "/usr/share/umlet/";
 		Path.setHomeProgram(realPath);
 	}