Clojure

Prevent test app from appearing in Mac OS X dock

Details

  • Type: Enhancement Enhancement
  • Status: Closed Closed
  • Priority: Trivial Trivial
  • Resolution: Completed
  • Affects Version/s: Release 1.6
  • Fix Version/s: Release 1.6
  • Component/s: None
  • Labels:
    None
  • Environment:
    Mac OS X
  • Patch:
    Code
  • Approval:
    Ok

Description

During a local ant build of Clojure (tested with master after release of 1.6.0-beta1), the script/run_test.clj is executed. As a side-effect on the Mac, the Java coffee cup app icon is placed in the Dock, and the test app becomes the active application on the desktop. This is slightly annoying.

Even with this property set, activation of awt causes focus to switch temporarily then switch back (at least on Mac).

Solution: Set the following properties during the build:

java.awt.headless=true

Patch: clj-1353-v4.patch

  1. CLJ-1353-no-mac-dock.patch
    16/Feb/14 1:34 PM
    0.7 kB
    Steve Miner
  2. CLJ-1353-v2.patch
    17/Feb/14 11:21 AM
    1 kB
    Andy Fingerhut
  3. clj-1353-v3.patch
    18/Feb/14 1:36 PM
    1 kB
    Alex Miller
  4. clj-1353-v4.patch
    25/Feb/14 11:33 AM
    1 kB
    Alex Miller

Activity

Steve Miner made changes -
Field Original Value New Value
Attachment CLJ-1353-no-mac-dock.patch [ 12805 ]
Steve Miner made changes -
Patch Code [ 10001 ]
Alex Miller made changes -
Approval Triaged [ 10120 ]
Andy Fingerhut made changes -
Attachment CLJ-1353-v2.patch [ 12816 ]
Rich Hickey made changes -
Approval Triaged [ 10120 ] Vetted [ 10003 ]
Fix Version/s Release 1.6 [ 10157 ]
Alex Miller made changes -
Description During a local ant build of Clojure (tested with master after release of 1.6-beta1), the script/run_test.clj is executed. As a side-effect on the Mac, the Java coffee cup app icon is placed in the Dock, and the test app becomes the active application on the desktop. This is slightly annoying.

The solution is to set the property apple.awt.UIElement to "true".
During a local ant build of Clojure (tested with master after release of 1.6.0-beta1), the script/run_test.clj is executed. As a side-effect on the Mac, the Java coffee cup app icon is placed in the Dock, and the test app becomes the active application on the desktop. This is slightly annoying.

Even with this property set, activation of awt causes focus to switch temporarily then switch back (at least on Mac).

*Solution:* Set the following properties during the build:
{code}
java.awt.headless=true
apple.awt.UIElement=true
{code}

*Patch:* clj-1353-v3.patch





Attachment clj-1353-v3.patch [ 12824 ]
Stuart Halloway made changes -
Approval Vetted [ 10003 ] Screened [ 10004 ]
Rich Hickey made changes -
Approval Screened [ 10004 ] Ok [ 10007 ]
Alex Miller made changes -
Description During a local ant build of Clojure (tested with master after release of 1.6.0-beta1), the script/run_test.clj is executed. As a side-effect on the Mac, the Java coffee cup app icon is placed in the Dock, and the test app becomes the active application on the desktop. This is slightly annoying.

Even with this property set, activation of awt causes focus to switch temporarily then switch back (at least on Mac).

*Solution:* Set the following properties during the build:
{code}
java.awt.headless=true
apple.awt.UIElement=true
{code}

*Patch:* clj-1353-v3.patch





During a local ant build of Clojure (tested with master after release of 1.6.0-beta1), the script/run_test.clj is executed. As a side-effect on the Mac, the Java coffee cup app icon is placed in the Dock, and the test app becomes the active application on the desktop. This is slightly annoying.

Even with this property set, activation of awt causes focus to switch temporarily then switch back (at least on Mac).

*Solution:* Set the following properties during the build:
{code}
java.awt.headless=true
{code}

*Patch:* clj-1353-v4.patch





Attachment clj-1353-v4.patch [ 12848 ]
Alex Miller made changes -
Resolution Completed [ 1 ]
Status Open [ 1 ] Closed [ 6 ]

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: