gitk funktioniert nicht innerhalb von tmux

gitk funktioniert nicht innerhalb von tmux

Ich habe ein seltsames Problem, bei dem gitkes nicht ausgeführt wird, wenn ich es innerhalb einer tmuxSitzung verwende. Wenn ich es gitkvon aus ausführe tmux, erhalte ich:

Error in startup script: 58:102: execution error: An error of type -10810 has occurred. (-10810)
    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 12019)

Wenn ich dies jedoch in einem normalen Terminal ausführe (kein tmux), funktioniert es einwandfrei wie es sollte.

Ich habe beides installiert tmuxund gitverwende Brew. Ich verwende Mac OSX 10.10.1. tmux -vZeigt 2.0 und git --version2.5.0 an.

Irgendeine Idee, warum das passiert?

Antwort1

Sie müssen reattach-to-user-namespace installieren/aktualisieren

Wenn Sie Brew verwenden, können Sie dies mit dem folgenden Befehl tun.

brew upgrade reattach-to-user-namespace

das hat etwas mit osascript zu tun

verwandte Informationen