brew cask install dia
After his it won't run because DISPLAY=:0 env var is not set
vim /Applications/Dia.app/Contents/Resources/bin/dia
Add 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
#########################################################
Hello , I try to install but it is not working ....I am using Mac Big Sur:
this is code :
Last login: Sat Mar 25 01:04:59 on ttys000
/Applications/Dia.app/Contents/Resources/bin/dia ; exit;
macbook@Air-de-Mion ~ % /Applications/Dia.app/Contents/Resources/bin/dia ; exit;
Warning: AppleCollationOrder setting not found, using AppleLocale.
Setting Language: fr.UTF8
(process:28180): Gdk-WARNING **: locale not supported by C library
(process:28180): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
(dia-bin:28180): Gtk-WARNING **: cannot open display: /private/tmp/com.apple.launchd.q2NMk6ERUN/org.xquartz:0
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Opération terminée]