its not a fix, but it's a decent work around that has worked for me.
This message was written by munepi (probably easier to read in the original post)
move the original Mac-port starter script to Meld.distro below.
$ mv/Applications/Meld.app/Contents/MacOS/Meld
/Applications/Meld.app/Contents/MacOS/Meld.distro
make a wrapper
/Applications/Meld.app/Contents/MacOS/Meld
of the Meld.distro
below
#!/bin/bash
##
# $ sudo xattr -r -d com.apple.quarantine /Applications/Meld.app/
## standard plist settings: OK
# ~/Library/Preferences/org.gnome.meld.plist
# $ defaults read org.gnome.meld
# $ defaults write org.gnome.meld "/org/gnome/meld/use-system-font" 0
# $ defaults write org.gnome.meld "/org/gnome/meld/custom-font" "Ricty, 18"
##FIXME: ad-hoc cleanup Meld settings (cd ${HOME} rm -rf ./.local/share/meld
#rm -f ./Library/Preferences/org.gnome.meld.plist rm -rf "./Library/Saved Application State/org.gnome.meld.savedState/" )
# export G_ENABLE_DIAGNOSTIC=1 # 0 or 1
# export GTK_THEME=Adwaita # Adwaita or Adwaita:dark
# export GTK_DEBUG=interactive logger "/Applications/Meld.app/Contents/MacOS/Meld.distro" exec "/Applications/Meld.app/Contents/MacOS/Meld.distro" $@
Then, $ chmod +x /Applications/Meld.app/Contents/MacOS/Meld
I remark that
you are available some GTK-related environment variables inside the
above wrapper Meld: G_ENABLE_DIAGNOSTIC, GTK_THEME, GTK_DEBUG. you are
also available some tips commented in the above wrapper Meld if
necessary. I also have posted how to use/change custom-font with Meld
plist settings in Issue Can't change font #38. The plist file
~//Library/Preferences/org.gnome.meld.plist is just the one. Please
check and try the post if necessary.
I had to change my .gitconfig as below
[mergetool]
prompt = false
[mergetool "meld"]
trustExitCode = true
cmd = /Applications/Meld.app/Contents/MacOS/Meld --auto-merge \"$PWD/$LOCAL\" \"$PWD/$BASE\" \"$PWD/$REMOTE\" --output=\"$PWD/$MERGED\"
more info/tips can be found here:
https://github.com/yousseb/meld/issues/73#issuecomment-447728538