Package: pleiades / 1.3.1-dfsg-1

fix-config.ini Patch series | download
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
Index: pleiades-1.3.1-dfsg/src/jp/sourceforge/mergedoc/pleiades/Pleiades.java
===================================================================
--- pleiades-1.3.1-dfsg.orig/src/jp/sourceforge/mergedoc/pleiades/Pleiades.java	2010-03-22 11:08:25.000000000 +0900
+++ pleiades-1.3.1-dfsg/src/jp/sourceforge/mergedoc/pleiades/Pleiades.java	2010-03-22 14:45:42.000000000 +0900
@@ -213,10 +213,20 @@
 		File pleiadesDir = Files.resourceRoot.getParentFile().getParentFile().getParentFile();
 
 		// config ディレクトリがデフォルトの名前の場合の検索
-		for (File dir = pleiadesDir; dir != null; dir = dir.getParentFile()) {
-			configIniFile = new File(dir, CONFIG_DIR_INI);
-			if (configIniFile.exists()) {
-				return configIniFile;
+		if  (os == OS.LINUX) {
+			for (File dir = pleiadesDir; dir != null; dir = dir.getParentFile()) {
+					dir = new File("/usr/lib/eclipse/");
+ 				configIniFile = new File(dir, CONFIG_DIR_INI);
+				if (configIniFile.exists()) {
+					return configIniFile;
+				}
+			}
+		} else {
+			for (File dir = pleiadesDir; dir != null; dir = dir.getParentFile()) {
+				configIniFile = new File(dir, CONFIG_DIR_INI);
+				if (configIniFile.exists()) {
+					return configIniFile;
+				}
 			}
 		}