1 | if (OSInfo.isLinux() || OSInfo.isSolaris()) {↵ | | 1 | if (OSInfo.isLinux() || OSInfo.isSolaris()) {↵
|
2 | if (defaultLinux.exists()) {↵ | | 2 | if (defaultLinux.exists()) {↵
|
3 | return defaultLinux;↵ | | 3 | return defaultLinux;↵
|
4 | } else if (defaultLocalLinux.exists()) {↵ | | 4 | } else if (defaultLocalLinux.exists()) {↵
|
5 | return defaultLocalLinux;↵ | | 5 | return defaultLocalLinux;↵
|
6 | }↵ | | 6 | }↵
|
7 | }↵ | | 7 | }↵
|
|
8 | /* RIYAD: The Prefs API cannot be used to read the Window's registry,↵ | | 8 | /* RIYAD: The Prefs API cannot be used to read the Window's registry,↵
|
9 | * it is coded to use the registry (if available) as a backing store↵ | | 9 | * it is coded to use the registry (if available) as a backing store↵
|
10 | * on in the SOFTWARE/JavaSoft/Prefs registry keys for HKEY_CURRENT_USER↵ | | 10 | * on in the SOFTWARE/JavaSoft/Prefs registry keys for HKEY_CURRENT_USER↵
|
11 | * and HKEY_LOCAL_MACHINE paths. I have seen a few java apps that use↵ | | 11 | * and HKEY_LOCAL_MACHINE paths. I have seen a few java apps that use↵
|
12 | * the Windows registry and they all required a native lib to do it.↵ | | 12 | * the Windows registry and they all required a native lib to do it.↵
|
13 | */↵ | | 13 | */↵
|
14 | /* If this is windows, check the default installation location for the↵ | | 14 | /* If this is windows, check the default installation location for the↵
|
15 | * aspell.exe binary.↵ | | 15 | * gpg.exe binary.↵
|
16 | */↵ | | 16 | */↵
|
17 | if (OSInfo.isWin32Platform() && defaultWin.exists()) {↵ | | 17 | if (OSInfo.isWin32Platform() && defaultWin.exists()) {↵
|
18 | return defaultWin;↵ | | 18 | return defaultWin;↵
|
19 | }↵ | | 19 | }↵
|
|
20 | /* Couldn't find anything, so return null and let the wizard ask the↵ | | 20 | /* Couldn't find anything, so return null and let the wizard ask the↵
|
21 | * user.↵ | | 21 | * user.↵
|
22 | */↵ | | 22 | */↵
|
23 | return null; | | 23 | return null;
|