You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rm...@apache.org on 2021/05/08 02:18:34 UTC

[logging-chainsaw] 01/01: Disable OSX integration on anything that is not OSX

This is an automated email from the ASF dual-hosted git repository.

rmiddleton pushed a commit to branch osx-integration-disable-linux
in repository https://gitbox.apache.org/repos/asf/logging-chainsaw.git

commit 2bb5581895dc39428b6a4c682e09c4226df426d0
Author: Robert Middleton <ro...@rm5248.com>
AuthorDate: Fri May 7 22:09:52 2021 -0400

    Disable OSX integration on anything that is not OSX
---
 src/main/java/org/apache/log4j/chainsaw/osx/OSXIntegration.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/main/java/org/apache/log4j/chainsaw/osx/OSXIntegration.java b/src/main/java/org/apache/log4j/chainsaw/osx/OSXIntegration.java
index 9124099..92eb129 100644
--- a/src/main/java/org/apache/log4j/chainsaw/osx/OSXIntegration.java
+++ b/src/main/java/org/apache/log4j/chainsaw/osx/OSXIntegration.java
@@ -34,6 +34,8 @@ public class OSXIntegration {
     private static final Desktop desktop = Desktop.getDesktop();
 
     public static final void init(final LogUI logUI) {
+        if( !IS_OSX ) return;
+        
         desktop.setAboutHandler(e ->
             logUI.showAboutBox()
         );