brew cask install diaAfter his it won't run because DISPLAY=:0 env var is not set
vim /Applications/Dia.app/Contents/Resources/bin/diaAdd the following content to line 40 (right before the oascript call)
#########################################################
# Ref: http://navkirats.blogspot.de/2014/10/dia-diagram-mac-osx-yosemite-fix-i-use.html
versionOSX=$(sw_vers -productVersion | awk -F '.' '{print $(NF-1)}')
[[ ${versionOSX} -ge 10 ]] && export DISPLAY=:0
#########################################################
Today 2026. I installed it in a two Macbook with Tahoe one a Macbook air M1 and a Macbook pro M5. The procedure it's the same but with some changes:
3.1. In the case of that you opened Dia before the next steps you need to remove the application and reinstall it. And again do not open it and continue since step 3
/Applications/Dia.app/Contents/Resources/bin/dia(I suggest to use a terminal and vim and the file to edit isdianot the binarydia-bin)4.1. In the case of you don't found that file
diago to step 3.1 and continue since that/Applications/Dia.app/Contents/Resources/bin/diago to the last line and edit that you will see:And you need to add this:
--display=:0 "$@"the final result it's:Just add
--display=:0 "$@"after of the--integrateddoesn't matter whatever else. And you got it!