Merge branch 'es/ignore-osascript-failure'

* es/ignore-osascript-failure:
  gitk: fix MacOS 10.14 "Mojave" crash on launch
main
Johannes Sixt 2025-10-04 15:36:42 +02:00
commit ead1687a3e
1 changed files with 7 additions and 5 deletions

12
gitk
View File

@ -12462,11 +12462,13 @@ namespace import ::msgcat::mc

# on OSX bring the current Wish process window to front
if {[tk windowingsystem] eq "aqua"} {
safe_exec [list osascript -e [format {
tell application "System Events"
set frontmost of processes whose unix id is %d to true
end tell
} [pid] ]]
catch {
safe_exec [list osascript -e [format {
tell application "System Events"
set frontmost of processes whose unix id is %d to true
end tell
} [pid] ]]
}
}

# Unset GIT_TRACE var if set