From: Evgeny Cherpak Date: Fri, 20 Jul 2018 06:26:55 GMT Subject: Re: Gitk doesn't work on macOS Mojave Message-ID: In-Reply-To: 👍 > On 20 Jul 2018, at 9:25, Eric Sunshine wrote: > > [re-adding cc:git] > > On Fri, Jul 20, 2018 at 12:38 AM Evgeny Cherpak wrote: >>> On 20 Jul 2018, at 7:30, Eric Sunshine wrote: >>> >>> On Fri, Jul 20, 2018 at 12:11 AM Evgeny Cherpak wrote: >>>> Not sure what you referring to? >>>> Is it alternative to gitk? How I install it? >>> >>> This: https://git-scm.com/docs/git-gui >>> >>> It's not an alternative to gitk, but complements it by providing >>> ability to stage and create commits, show blame information >>> graphically, etc. >>> >>> It's a standard part of the Git distribution, although it may not be >>> installed by default, depending upon your platform and the packager. >>> Some Linux distributions, for instance, may place it in a separate >>> package for installation (named "git-gui" or something). >> >> Just tried it - it works, but doesn't get focus. > > Looking more closely, the code in "git gui" is catching and silently > ignoring errors: > > ## On Mac, bring the current Wish process window to front > if {[tk windowingsystem] eq "aqua"} { > catch { > exec osascript -e [format { > tell application "System Events" > set frontmost of processes whose unix id is %d to true > end tell > } [pid]] > } > } > > which explains why you don't see the "Not authorized to send Apple > events" error you see with gitk, and also explains why the application > doesn't get focus. > > So, updating gitk to mirror git-gui might be one way forward.