incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From liu...@apache.org
Subject svn commit: r1357107 - /incubator/ooo/trunk/main/test/testcommon/source/org/openoffice/test/vcl/widgets/VclApp.java
Date Wed, 04 Jul 2012 06:39:31 GMT
Author: liuzhe
Date: Wed Jul  4 06:39:30 2012
New Revision: 1357107

URL: http://svn.apache.org/viewvc?rev=1357107&view=rev
Log:
Fix: The default OpenOffice home is wrong

Modified:
    incubator/ooo/trunk/main/test/testcommon/source/org/openoffice/test/vcl/widgets/VclApp.java

Modified: incubator/ooo/trunk/main/test/testcommon/source/org/openoffice/test/vcl/widgets/VclApp.java
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/test/testcommon/source/org/openoffice/test/vcl/widgets/VclApp.java?rev=1357107&r1=1357106&r2=1357107&view=diff
==============================================================================
--- incubator/ooo/trunk/main/test/testcommon/source/org/openoffice/test/vcl/widgets/VclApp.java
(original)
+++ incubator/ooo/trunk/main/test/testcommon/source/org/openoffice/test/vcl/widgets/VclApp.java
Wed Jul  4 06:39:30 2012
@@ -63,8 +63,10 @@ public class VclApp {
 		if (appHome == null) {
 			if (SystemUtil.isWindows()) {
 				appHome = "C:/Program Files/OpenOffice.org 3/program";
+				if (!new File(appHome).exists())
+					appHome = "C:/Program Files (x86)/OpenOffice.org 3/program";
 			} else if (SystemUtil.isMac()) {
-				appHome = "/Applications/OpenOffice.org/Contents/MacOS";
+				appHome = "/Applications/OpenOffice.org.app/Contents/MacOS";
 			} else {
 				appHome = "/opt/openoffice.org3/program";
 			}



Mime
View raw message