Changeset 08062aa


Ignore:
Timestamp:
Nov 7, 2016 2:31:53 PM (3 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
ab064fd
Parents:
c9c2952
Message:

service cant be android

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/util/SystemVersion.java

    rc9c2952 r08062aa  
    3535    private static final boolean _is64;
    3636    private static final boolean _hasWrapper = System.getProperty("wrapper.version") != null;
    37     private static final boolean _isLinuxService = !_isWin && !_isMac &&
    38                                                    DAEMON_USER.equals(System.getProperty("user.name"));
     37    private static final boolean _isLinuxService;
    3938
    4039    private static final boolean _oneDotSix;
     
    6463        String runtime = System.getProperty("java.runtime.name");
    6564        _isOpenJDK = runtime != null && runtime.contains("OpenJDK");
     65        _isLinuxService = !_isWin && !_isMac && !_isAndroid &&
     66                          DAEMON_USER.equals(System.getProperty("user.name"));
    6667
    6768        int sdk = 0;
Note: See TracChangeset for help on using the changeset viewer.