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:33 UTC

[logging-chainsaw] branch osx-integration-disable-linux created (now 2bb5581)

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

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


      at 2bb5581  Disable OSX integration on anything that is not OSX

This branch includes the following new commits:

     new 2bb5581  Disable OSX integration on anything that is not OSX

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


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

Posted by rm...@apache.org.
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()
         );