mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-07 06:02:33 -04:00
Add check for os arch
This commit is contained in:
parent
a10c5bb25c
commit
c98a08b7cf
2 changed files with 18 additions and 4 deletions
|
@ -118,6 +118,15 @@ public class Utilities {
|
|||
return System.getProperty("os.name").toLowerCase();
|
||||
}
|
||||
|
||||
public static boolean isCorrectOSArchitecture() {
|
||||
String osArch = System.getProperty("os.arch");
|
||||
String jvmArch = System.getProperty("sun.arch.data.model");
|
||||
//TODO remove log
|
||||
log.warn("osArch " + osArch);
|
||||
log.warn("jvmArch " + jvmArch);
|
||||
return osArch.endsWith(jvmArch);
|
||||
}
|
||||
|
||||
public static void openURI(URI uri) throws IOException {
|
||||
if (!isLinux()
|
||||
&& Desktop.isDesktopSupported()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue