Dia Diagram Mac OSX Yosemite Fix 闪退 xterm

[转]http://navkirats.blogspot.hk/2014/10/dia-diagram-mac-osx-yosemite-fix-i-use.html

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.

时间: 2024-08-09 10:37:01

Dia Diagram Mac OSX Yosemite Fix 闪退 xterm的相关文章

Installing Hadoop on Mac OSX Yosemite Tutorial Part 1.

Installing Hadoop on Mac OSX Yosemite Tutorial Part 1. September 23, 2014 Marek 68 Comments Install HomeBrewInstalling HadoopSSH LocalhostConfiguring HadoopStarting and Stopping HadoopGood to know Additional Resources Github Wordcount example. Instal

Setting up Latex-vim (or Latex-suite) plugin within macVim under Mac OSX Yosemite 2015-1-20 by congliu

1. Overview: Vim是命令行下的文本编辑程序,gVim是Vim的Linux下的图形化版本,macVim是Mac下的图形化版本 Latex-vim是vim写Latex文件时的插件 Skim是Mac下的pdf阅读软件 2.Install: 安装macVim:用brew install macvim命令来安装,如果提示没有brew,则先安装brew:如果提示没有装xcode,则先在appstore中安装xcode 安装skim:一定要安装最新版本. 可选装vim的配色方案:solarize

Mac OSX Yosemite 10.10 brew 错误:mktemp: mkdtemp failed on /tmp/git-LIPo: No such file or directory

这个问题困扰了我很久很久,使得我不得不花一点时间来说一下解决方法. 事情是这样的:前两天兴高采烈的更新了一下宝贝mac到10.10.一切看起来都那么美好,但是..当我重新安装magento的时候发现需要mcrypt!:之前有装过,但是更新了一下就没有了,好吧,重装!!但是这个时候发现,brew update不能用了!!坑屌丝么!!so重装brew!,好不容易装好了,brew install mcrypt的时候,遇到问题: Already downloaded: /Library/Caches/H

Mac OSX 10.10 Yosemite编译OpenJDK 9

在Mac OSX 10.10系统上编译了下OpenJDK9,以下仅是个人安装记录,供参考. 编译时间:2015-06-13 系统版本:Mac OS X Yosemite 10.10.4 编译OpenJDK版本:JDK 9 相关软件版本: XCode版本:XCode6-Beat4    Version 6.0 (6A267n) JDK版本:1.8.0_45 软件管理工具:brew Xquartz(X11):2.7.7 参考资料: OpenJDK Home Page OpenJDK官方编译步骤(下载

Mac OSX 10.10 - Yosemite更新svn版本

问题:在命令行下对项目进行版本管理操作,结果报这样的错: svn: E155021: This client is too old to work with the working copy at'/Users/user/works/v1baobao4iphone' (format 31).You need to get a newer Subversion client. For more details, see http://subversion.apache.org/faq.html#w

Mac 活动监视器 闪退 打不开

Mac 活动监视器 闪退 打不开 转:https://www.jianshu.com/p/1608ec4973c3 情况描述:首先安装java,然后使用make编译了十个小时,在编译过程中发现活动监视器打不开.编译完成后,依然打不开.盒盖一晚上,早上起来电脑依然巨烫.重启电脑,活动监视器依然打不开. 猜测原因,是因为,先打开了Safari,然后下载了java,然后safari后面进程做了更新或者死循环? 解决方案:启动终端,输入: ps aux | grep ssl 显示: USER  PID 

Install mcrypt for php on Mac OSX 10.10 Yosemite for a Development Server

mcrypt is a file encryption method using secure techniques to exchange data. It is required for some web apps for example Magento, the shopping cart software or a php framework like Laravel. This tutorial has been tested in OSX 10.10 Yosemite. This g

Mac Eclipse上Android SDK manager闪退的问题!!

最近想自学一下Android,也没啥人指导,安装的过程中就花了一整天....安装完ADT,安装完SDK,所有步骤都照着网上来,可是一打开SDK manager就闪退!网上所有方法都找了,可是几乎全是windows的,没啥参考性,试了好多方法,终于发现是SDK版本太新了!以后不要随便去官网下载最新版本了,各种问题..官网下的是android-sdk-mac_x86-1.6_r1,我找到里面运行SDK manager需要先运行的android.bat文件,打开一行一行看,又不太懂shell 脚本语言

MAC打开uiautimatorviewer闪退怎么办?

问题: 下载安装Android SDK后,并且已在.bash_profile文件中配置环境变量.但是在tools中打开定位工具uiautomatorviewer出现闪退. 解决: 首先检查环境变量配置,再三检查后发现环境变量没有问题. 后来询问周边小伙伴发现自己安装的jdk版本过高,其他小伙伴都是jdk8.于是开始更新jdk版本为jdk8,步骤如下: 1,官网下载jdk8 官网地址:http://www.oracle.com/technetwork/java/javase/downloads/j