Dia 使用 Mac OS 10.11.6 崩溃

Dia crashing with Mac OS 10.11.6

问题: 自从 "upgrading" 到 El Capitan,Dia 将无法打开(图标短暂出现然后消失)。

错误信息(通过命令行打开时):

(process:45300): Gdk-WARNING **: locale not supported by C library

(process:45300): Gtk-WARNING **: Locale not supported by C library.
    Using the fallback 'C' locale.

(dia-bin:45300): Gtk-WARNING **: cannot open display: /private/tmp/com.apple.launchd.xxxxxxx/org.macosforge.xquartz:0  

遵循此错误报告的说明:https://sourceforge.net/p/dia-installer/support-requests/105/ 没有成功:

错误报告中建议的代码更改后的错误消息:

(process:44516): Gdk-WARNING **: locale not supported by C library

(process:44516): Gtk-WARNING **: Locale not supported by C library.
    Using the fallback 'C' locale.

(dia-bin:44516): Gtk-WARNING **: cannot open display: :0

相关版本信息:

Has anyone managed to get Dia working with El Capitan?

如果这对其他人有帮助,请全新安装 XQuartz (https://www.xquartz.org) 解决问题。

注意: 仍然需要在源代码中的第 39 行添加 export DISPLAY=:0