mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-22 19:43:11 +00:00
Util: Consolidate linux service detection code
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user