aboutsummaryrefslogtreecommitdiff
path: root/gitk
diff options
context:
space:
mode:
authorJohannes Sixt <j6t@kdbg.org>2025-10-04 15:36:42 +0200
committerJohannes Sixt <j6t@kdbg.org>2025-10-04 15:36:42 +0200
commitead1687a3e755410299c0ec8cd75e732ecf777a7 (patch)
tree1d8a19449baadc73fe62ed7b52a698b31b7a4de2 /gitk
parentd7cedce06364305f1fa8d0571232f15aa5e4507e (diff)
parent9611ef554d17b067195b6fa363bb59add39ab0d2 (diff)
downloadgit-ead1687a3e755410299c0ec8cd75e732ecf777a7.tar.xz
Merge branch 'es/ignore-osascript-failure'
* es/ignore-osascript-failure: gitk: fix MacOS 10.14 "Mojave" crash on launch
Diffstat (limited to 'gitk')
-rwxr-xr-xgitk12
1 files changed, 7 insertions, 5 deletions
diff --git a/gitk b/gitk
index 3cfc9ef291..a35c091cf1 100755
--- a/gitk
+++ b/gitk
@@ -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