From 13ef00cb2eeb83b7e9dcc9bd364025998f31d7bd Mon Sep 17 00:00:00 2001
From: zzz <zzz@mail.i2p>
Date: Wed, 3 Oct 2012 17:41:33 +0000
Subject: [PATCH] add hasWrapper()

---
 core/java/src/net/i2p/util/SystemVersion.java | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/core/java/src/net/i2p/util/SystemVersion.java b/core/java/src/net/i2p/util/SystemVersion.java
index 4e965b23fb..d43cddc898 100644
--- a/core/java/src/net/i2p/util/SystemVersion.java
+++ b/core/java/src/net/i2p/util/SystemVersion.java
@@ -84,4 +84,12 @@ public abstract class SystemVersion {
     public static int getAndroidVersion() {
         return _androidSDK;
     }
+
+    /**
+     *  Is the wrapper present?
+     *  Same as I2PAppContext.hasWrapper()
+     */
+    public static boolean hasWrapper() {
+        return System.getProperty("wrapper.version") != null;
+    }
 }
-- 
GitLab