优化:Windows环境下没有配置office.home,查找Office组件,内置的优先
This commit is contained in:
@ -87,10 +87,10 @@ public class OfficeUtils {
|
|||||||
programFiles = System.getenv("ProgramFiles");
|
programFiles = System.getenv("ProgramFiles");
|
||||||
}
|
}
|
||||||
return findOfficeHome(
|
return findOfficeHome(
|
||||||
programFiles + File.separator + "LibreOffice",
|
officePluginPath + File.separator + "windows-office",
|
||||||
programFiles + File.separator + "OpenOffice 4",
|
programFiles + File.separator + "LibreOffice",
|
||||||
programFiles + File.separator + "LibreOffice 4",
|
programFiles + File.separator + "OpenOffice 4",
|
||||||
officePluginPath + File.separator + "windows-office"
|
programFiles + File.separator + "LibreOffice 4"
|
||||||
);
|
);
|
||||||
} else if (PlatformUtils.isMac()) {
|
} else if (PlatformUtils.isMac()) {
|
||||||
return findOfficeHome(
|
return findOfficeHome(
|
||||||
|
|||||||
Reference in New Issue
Block a user