From 5f5b03879d9daa68a56498b45ae87a804cb1926b Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Thu, 10 Jul 2014 18:43:31 -0700 Subject: 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 --- altosuilib/AltosUILib.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'altosuilib/AltosUILib.java') 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; -- cgit v1.2.3