# [PATCH] Force gitk as the forground process when it starts up on Mac OS X

2 messages from 2009-02-02 to 2009-02-02. Participants: Gisle Aas, Sverre Rabbelier.
Thread: https://gitlist.dev/t/17502

## Gisle Aas, 2009-02-02 13:36

Subject: [PATCH] Force gitk as the forground process when it starts up on Mac OS X
Message-ID: <b48ea8a00902020536t1baea7fbw4fbf27f235024639@mail.gmail.com>
URL: https://gitlist.dev/e/b48ea8a00902020536t1baea7fbw4fbf27f235024639%40mail.gmail.com

```
It annoys me that gitk always start out in the background on Mac OS X.
 This patch fixes this for those that have the tclCarbonProcess
package installed.  Unfortunately that package is not shipped by
default from Apple, but it's part of ActiveTcl.

--Gisle


>From 272c7f9b6a2bcdf48e4141b9dc5af445fa69a27b Mon Sep 17 00:00:00 2001
From: Gisle Aas <gisle@aas.no>
Date: Mon, 2 Feb 2009 14:27:20 +0100
Subject: [PATCH] Force gitk as the forground process when it starts up
on Mac OS X

Signed-off-by: Gisle Aas <gisle@aas.no>
---
 gitk-git/gitk |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/gitk-git/gitk b/gitk-git/gitk
index dc2a439..e0c11f7 100644
--- a/gitk-git/gitk
+++ b/gitk-git/gitk
@@ -10918,5 +10918,11 @@ if {[info exists permviews]} {
 if {[tk windowingsystem] eq "win32"} {
     focus -force .
 }
+if {[tk windowingsystem] eq "aqua"} {
+    catch {
+        package require tclCarbonProcesses
+        carbon::setFrontProcess [carbon::getCurrentProcess]
+    }
+}

 getcommits {}
-- 
1.6.1.28.gc32f76

```

## Sverre Rabbelier, 2009-02-02 19:07

Subject: Re: [PATCH] Force gitk as the forground process when it starts up on Mac OS X
Message-ID: <bd6139dc0902021107x286d77f9s4dc05a0579bd2bce@mail.gmail.com>
URL: https://gitlist.dev/e/bd6139dc0902021107x286d77f9s4dc05a0579bd2bce%40mail.gmail.com
In-Reply-To: <b48ea8a00902020536t1baea7fbw4fbf27f235024639@mail.gmail.com>

```
Heya,

On Mon, Feb 2, 2009 at 14:36, Gisle Aas <gisle@aas.no> wrote:
> It annoys me that gitk always start out in the background on Mac OS X. Hence this patch
> --Gisle
>
>
> From 272c7f9b6a2bcdf48e4141b9dc5af445fa69a27b Mon Sep 17 00:00:00 2001
> From: Gisle Aas <gisle@aas.no>
> Date: Mon, 2 Feb 2009 14:27:20 +0100
> Subject: [PATCH] Force gitk as the forground process when it starts up
> on Mac OS X
>
> This patch makes gitk start in the foreground this for those that have the
> tclCarbonProcess package installed.  Unfortunately that package is not
> shipped by default from Apple, but it's part of ActiveTcl.
>
> Signed-off-by: Gisle Aas <gisle@aas.no>

There, fixed that for ya :).

-- 
Cheers,

Sverre Rabbelier

```
