summaryrefslogtreecommitdiff
path: root/altosuilib/AltosUILib.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-07-10 18:43:31 -0700
committerKeith Packard <keithp@keithp.com>2014-07-10 18:43:31 -0700
commit5f5b03879d9daa68a56498b45ae87a804cb1926b (patch)
treee4894fe10897dc90f75eb1a424566029812f095d /altosuilib/AltosUILib.java
parentaac3fdce54233993c91d326df3732a7c448ac54a (diff)
altosui: Don't show bluetooth UI bits on mac/windows
This just confuses people into thinking that bluetooth is supported on those machines. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosuilib/AltosUILib.java')
-rw-r--r--altosuilib/AltosUILib.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/altosuilib/AltosUILib.java b/altosuilib/AltosUILib.java
index 0050f12c..8fa7dfe6 100644
--- a/altosuilib/AltosUILib.java
+++ b/altosuilib/AltosUILib.java
@@ -80,6 +80,7 @@ public class AltosUILib extends AltosLib {
static public boolean initialized = false;
static public boolean loaded_library = false;
+ static public boolean has_bluetooth = false;
static final String[] library_names = { "altos", "altos32", "altos64" };
@@ -96,6 +97,13 @@ public class AltosUILib extends AltosLib {
loaded_library = false;
}
}
+
+ String OS = System.getProperty("os.name");
+
+ if (OS.startsWith("Linux")) {
+ has_bluetooth = true;
+ }
+
initialized = true;
}
return loaded_library;