Util: Consolidate linux service detection code

This commit is contained in:
zzz committed 2016-11-06 00:49:34 +00:00
1 parent 11e86110e7
commit e8de1daf65
6 files changed
+21 -10

No files matched your search

@@ -201,7 +201,7 @@ public class ConfigServiceHandler extends FormHandler {
*/
public boolean shouldShowSystray() {
return !
(RouterConsoleRunner.DAEMON_USER.equals(System.getProperty("user.name")) ||
(SystemVersion.isLinuxService() ||
(SystemVersion.isWindows() && _context.hasWrapper() && WrapperManager.isLaunchedAsService()) ||
// headless=true is forced in i2prouter script to prevent useless dock icon;
// must fix this first