Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Starting gitk on macOS gives an error application is not running

Tags:

git

When I'm loading gitk I get an error ->

Error in startup script: 58:102: execution error: System Events got an error: Application isn’t running. (-600)
    while executing
"exec osascript -e [format {
        tell application "System Events"
            set frontmost of processes whose unix id is %d to true
        end te..."
    invoked from within
"if {[tk windowingsystem] eq "aqua"} {
    exec osascript -e [format {
        tell application "System Events"
            set frontmost of processes ..."
    (file "/usr/local/bin/gitk" line 12212)

My git version is 2.17.1 and my mac os version is 10.13.6. Any ideas on how to fix this?

like image 999
Jhalaa Chinoy Avatar asked Nov 01 '18 17:11

Jhalaa Chinoy


1 Answers

There is relevant information about this in an older issue: Applescript fails with error (-600) when launched over ssh on Mavericks

People has reported to solved this by either restarting the machine or killing "System Events".

$ kill -9 $(pgrep "System Events")
like image 87
Baleato Avatar answered Oct 10 '22 12:10

Baleato