惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

量子位
D
Docker
月光博客
月光博客
MongoDB | Blog
MongoDB | Blog
Vercel News
Vercel News
美团技术团队
博客园 - 叶小钗
I
InfoQ
Jina AI
Jina AI
博客园 - 司徒正美
雷峰网
雷峰网
B
Blog
Y
Y Combinator Blog
A
About on SuperTechFans
WordPress大学
WordPress大学
酷 壳 – CoolShell
酷 壳 – CoolShell
大猫的无限游戏
大猫的无限游戏
Microsoft Security Blog
Microsoft Security Blog
Stack Overflow Blog
Stack Overflow Blog
腾讯CDC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Recent Announcements
Recent Announcements
V
V2EX
N
Netflix TechBlog - Medium

博客园 - zbjice

mybatis-plus saveBatch方法java.lang.NullPointerException MacOS打开应用后反复提示“XXX将对你的电脑造成伤害。你应该将它移到废纸篓”的解决办法 charles代理证书更新 cron表达式里日期和星期关系 oracle设置与数据源的 JDBC 连接 JDK升级问题记录 加载spring的xsd文件失败,导致发布失败 图片压缩优化 APP中https证书有效性验证引发安全问题(例Fiddler可抓https包) Fullgc引发redis超时异常 maven父子模块deploy 问题 lua post参数获取,参数截断 PhpStorm, XDebug, and DBGp Proxy sql优化-隐形转换危害 mybatis 关联映射传递多参数方法 分页栏页码输入框校验 oracle中查询或插入特殊字符 使用a标签或form的submit做下载按钮,然后通过js调用其click事件去下载时经常出现的异常 eclipse、tomcat搭建时出现异常
Dia Diagram Mac OSX Yosemite Fix 闪退 xterm
zbjice · 2015-11-06 · via 博客园 - zbjice

I use the Dia tool for all my diagramming work. I have worked with many tools, but find Dia the easiest to use and is the most responsive, apart from it being a great OpenSource tool :).

I recently upgraded to the new Mac Operating System Yosemite and I could no longer use Dia. Each time I clicked on the Dia icon, it would jump up & down and do nothing. I finally tried opening the app via the command line, which gave me the following error:

The domain/default pair of (.GlobalPreferences, AppleCollationOrder) does not exist

The error trace ended with GTK warning - could not open display.

I could not find anything on the internet that was Dia specific, so I thought of writing this blog, in hope of helping someone in the same situation as me. So here is what I did:

  1. Goto your Applications directory where Dia.app exists (mine was located at: /Applications)
  2. Right click the icon and click on Show Package Contents
  3. Goto the directory Dia.app/Contents/Resources/bin
  4. Edit the file dia, in your favourite text editor.
  5. After line 39, add the line: export DISPLAY=:0
  6. Save and exit.
  7. Close XQuartz if its running.
  8. Now Dia should come up.
  9. If it does not come up, try restarting your computer.

If not, try and add the line - export DISPLAY=:0 to your ~/.bash_profile, re-login and hopefully you should have Dia working once again. 

Let me know if this helped you out :)


The red rectangle shows where I put the DISPLAY variable for Dia to start responding.