Dia Diagram Mac OSX Yosemite Fix
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:
- Goto your Applications directory where Dia.app exists (mine was located at: /Applications)
- Right click the icon and click on Show Package Contents
- Goto the directory Dia.app/Contents/Resources/bin
- Edit the file dia, in your favourite text editor.
- After line 39, add the line: export DISPLAY=:0
- Save and exit.
- Close XQuartz if its running.
- Now Dia should come up.
- 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 :)
304 comments:
1 – 200 of 304 Newer› Newest»Worked for me, thanks a lot!
Great to hear thanks :)
Thanks man. Works for me as well. I was wondering why it doesn't work and already started to install in in the virtual machine :-P
Nice job. Thanks again.
Stefci
:)
Hooray! This worked for me, too. Many thanks!
Thank you, your fix worked for me. Hero of the day!
I need help guys...can't seem to get this to work...
Hey....what seems to be the problem?
Great, thanks a lot for the help - worked perfectly!
Thank you! Thank you! Thank you!
Struggling! Is there anything I'm missing? Just insert the line below line 39? What does line 39 say?
Also struggling! Please be more precise about line 39. Thanks1
Sadly it didnt work out for me, both ways...
It opens x11 but dia is not opening, just comes up bounces a few times and disappears.
I just want to give a big thumbs up for the post, much appreciated!
Worked wonders for me.
I have updated the blog and put in a screenshot of the .dia file contents, which displays the exact location of the DISPLAY variable. This is for those who were asking me where I added the one liner. Hope this helps!
Thank you very much!!!
Thank you very much, Nav!
Your screenshot was very helpful!
Dia works again the way it should.
It's alive again! Thank you so much!
Thanks dude, it was just one semicolon too much for me :-D
without it's workin.
Much Appreciate it!!!
Worked for me!! Thanks man!
Wow!! You saved my day. This worked like a champ. Thank you so much!
Nice insight! Fixed Dia for me, too.
¡Great! ¡Thanks again!
Thank you for your kindness. I've tried it before but now it's clear after seeing your screenshot. works like charm!
Makes me really happy it works for so many people :)
Thanks so much! Saved me :)
Thanks a lot men.
Regards.
Worked a treat, thanks!
Thanks a lot, it worked!
Thanks a lot and greetings from México. :)
Thank you.
Very, very much appreciated :)
David
Oh Glorious Day! Your fix worked wonderfully! I, too was going to begin running it in my Win8 VM but decided to Google once more for a fix. Thank you for sharing!
Thanks from Mexico!!!
thanks from China.
thanks a lot from China
Had to wait some time for it to load, and dia icon keeps jumping after start, but works, thanks!
Thanks so much!
@everyone - I am elated to hear that this helped so many :)
this only works if you've tried to run Dia.app after copying to /Applications first. otherwise you get a message about a corrupt file.
1. install by dragging to /Applications
2. attempt to run for first time
3. edit dia
Thank you!!! Really helpful.... Cheers
Thank you! thank you! thank you!
Oh, I forgot... Thank you very much!! :D
Worked for me, thank you so much :) Didn't need to reboot, first fix adding line 39 worked.
thanks a lot!
Super, funktioniert wieder!
Great job ! it worked. Thanxxxx ! Pls note : X11 update extraction does not work, so I'm going to do a clean install of .dmg package from Apple website
This works, thank you!
Thanks for the tip! Helped a lot :)
Awesome! Thanks a lot!
I can't seem to get it to work. I add the code on line 39 and try to run it and OSX tells me the package is damaged and can't be opened. I think it may work if I can get it to run it. Please help!
You are a HERO! Thanks so much for posting this . . . worked like a charm! This saved me an enormous amount of time!
Worked for me! Thank you!
Many thanks....worked like a charm
Thanks a lot
My 'dia' file doesn't look like that, it has less code in the x11 discovery, for one
https://www.dropbox.com/s/0iysl7uenm8uag9/Screenshot%202015-02-10%2014.31.29.png?dl=0
I also got an error message about a damaged app.
Thanks that worked!
Hadn't used Dia for a couple of months, and not since I upgraded to Yosemite. And, of course, it wouldn't launch.
Found your blog post, which solved the problem beautifully.
Thanks SO much for taking time to share this information. Really appreciate it!
I was about to give up on using Dia on my OS X box. I even considered converting it to Linux, where Dia works out of the box. Then I found your blog. Thank you very much for taking time to share the solution.
Thanks, it worked!!!
Thank you very much!!!
Hi, I edited the dia file in the Macintosh HD ▸ Applications ▸ Dia ▸ Contents ▸ Resources ▸ bin and I opened Dia in Applications after closing the X11 and restarting, but doesn't work (says, dia file is corrupted and move to trash) but when I open the dia executable in the bin directory, it works. Please help me here.
Thank you very much it was very useful :)
thanks worked for me too :))
works for me, Thx
Thank you! It works now!
Thank you, smart person, for being smarter than me, walking the path less trodden and paving the way for the rest of us meandering elephants. I applaud you.
Thank you very much! Still Dia takes some time to come up, but after it finally does, all is fine.
Worked for me :p
Takes some time for Dia to open, so I thought it was not working, but then, bam Dia came up :-)
hey, thanks a lot, you really saved me here.
Thank you SO much. Finally, I can use Dia again!
Thank you, it worked fine without restarting.
Thank you!
Thank you ! It works well.
That works perfectly !!!! many thanks !!!
That worked just fine! Thanks mate.
That worked just fine. Thanks mate.
It's ok for me! Tks very much
Have you ever heard of Lucidchart? It's cloud based, and makes it pretty easy on any computer. I'm not a pro with all of the software, but it worked great for me.
You are god, thanks it works, I wonder why they dont patch their package....
Not working for me with 10.10.3
Message is "app corrupt put in in trash".....
Thanks for help.
Not working for me with 10.10.3
Message is "app corrupt put in in trash".....
Thanks for help.
THANKS YOU!!! It's working
Does not work, unfortunately, but gives me a complete system hang. (OS X Yosemite 10.10.3) Would be better, if the dia installer could be fixed to work with Yosemite.
Worked for me! Thanks a lot! :)
I gave up the problem when there was no fix and started using creately online diagram and collaboration software
For those who are struggling with this fix, i.e. you add the fix to the dia script at line 39 as suggested and still nothing happens, you may think that you closed X11 but you haven't really, so:
Make sure that you kill all the Quartz processes (the X11 replacement), that is, run
# ps awux | grep quart
and start killing all the processes listed there using the kill command (or just kill the one named startx, which should take the rest down).
after the process list no longer lists any quarts related processes, then manually run
# startx
After that and the fix above, Dia should start normally.
Many thanks. This worked for me.
worked as you mentioned!
thanks a lot!
Thanks a lot....working now :)
Thank you a lot, DIA is working again for me.
Thank you very much. I like it when it's easy for me, but it must have been a pain for you
Thank you, Thank you, Thank you!
I didn't have to restart XQuartz either.
Wonderful! Thank you so much!
Thanks a lot for the information. Work for me !
Thanks for the info. Worked for me too!
Thank you - your guide allowed me to use Dia again!
Thank you so much for this blog post.
Thanks, it really works. I was worried for not been able to work with it any more.
It worked, but Dia icon keeps bouncing all the time in my dock :O It does not bother me, but that doesn't seems to happen
In my case it did not work but I launched it form the xterm and it worked... (without the modification suggested)
Hi,
Thanks for your tips. It works for me. Thanks a lot
Worked like a charm. You rock! Thanks!
Thanks, it works great!
Worked like a charm. Thank you so much.
Thank you very much. I helped a lot. In mine line number was more than 39
Wow that works. Thank you very much.
Thank You! Works fine.
Awsome !! thanks!
Awesome! Worked like a charm.
Thank you!
Realmente gracias, lo leo desde colombia e hiciste un gran aporte, espero en un futuro agradecértelo, vuelvo y repito, realmente gracias...
Worked for me on mac os x 10.10.2
Work on me too. mac os x 10.10.5
Nice! Thank you! Working on mac OS X 10.10.4. How did you find out about the DISPLAY variable?
For those of you having trouble with an "App Corrupt - Send to Trash" message, the problem is that you didn't try to start Dia before you edited the file. Once you edit the file, Mac OS sees the edited program as corrupt because it is not in the state that you downloaded it in. The fix: Download and install Dia. Try to run it (it will fail). Edit the file, add the line to export the display, save and run. That works for me.
Thanks a lot, you saved me a lot of trouble. Couldn't start Dia on Mac OS X 10.10.5
Thanks a lot, man! I am a frequent user of Dia for many types of diagrams. You just saved a scientific paper.
Thanks a lot, Working on Mac OS X 10.10.5
Thanks mate!
Humm...don't seem to work for me. I use Mac Yosemite. However my Dia file does not have the sections shown in your picture, in regards to checking and starting X11. In my case when I try to the open app, the icon bounces for a few secs and then disappears. I don't see the Quartz app attempting to start and I know I have it cause I use it with Wireshark. Any ideas?
I have the same problem as OSKAR.
Despite all the changes and log-out/log-ins, the icon bounces for a few seconds and then disappears. X11 starts but Dia does not.
Does anyone know how to resolve this problem?
I would try a full reboot if you haven't yet. I had problems like this using X11 where the program's wouldn't work without a full reboot.
I found that I was using an older Dia version that I had downloaded sometime ago. After downloading and installing the latest available for Mac, the app appears to be working fine after applying the fix.
It worked for me! Thanks!!!
It worked for my wife, thanks :)
You are scholar and a gentleman. Thanks, it fixed my problem.
great . works like a charm.
cheers m80. your tip worked perfectly (on yosemite). took a while for the Dia icon to stop bouncing though. just need to find the best method of importing a mindmap from freemind.
if the mac version and linux version's of freemind had been compatible i wouldn't be here.
but they aren't, so i am.
so good! worked even without restarting the mac. Thanks a lot man!!
Being a new apple user I have been facing many problems to operate it. Among many others, for now I need a statistical software to instal in my macbook pro 10.10.5. But when I tried I could not. But it is essential for me. If anybody can help me to solve this problem.
Thank you.
worked like a charm, thanks
Thank you very much! It's now working...
Thank you very much from Brazil!
thanks from france
Worked! Thanks!
Thanks a lot ! Your post helped me.
If anyone had problems opening Dia on mac they can also see: https://discussions.apple.com/thread/6663397?start=0&tstart=0
Additionally, I had the problem of not being able to use arguments for /ApplicationsDia.app/Contents/Resources/bin/dia. eg:
dia -e test.eps -t eps test.dia
I found out that my arguments was not passed to the execution of dia-bin, at the last line (144) of /ApplicationsDia.app/Contents/Resources/bin/dia:
exec "$CWD/dia-bin" --integrated
The solution is to add the arguments by replacing the line with:
exec "$CWD/dia-bin" --integrated "$@"
Worked for me, thank you!
Thanks!
This worked for me too. Thanks so much!
Thank you so much!!!!
Worked! Thanks man!!
hey !!!!works for me too!!!!
thanks a lot
It worked for me! Thanks!!
Thank you very much. It worked for me as well. :D
Thank you, it works!
This worked great for me on 10.11.2 - thanks very much.
With Text Editor, the line number looks wrong because it doesn't number the lines and long lines wrap (so you count one line as more than one when pressing the down arrow).
Follow the image and all is good :-)
It worked on El Capitan. Many thanks kind sir :D
Thank you! It works on El Capitan.
Worked for me as well, Thx.
Did worked for me at OSX Yosemite.
thx a lot :-)
Thnx a lot! It worked
Awesome work! Thank you so much!
Thanks a lot! Now it works!
nice...it works
Excellent. Thanks a lot.
Thanks Nav, your fix worked for my newly upgrade OX. Hero of the day!
Thank you so much! It helps a lot!
Try to change the read/write permission level on the file, with: "sudo chmod 777 "
I'm not sure of what level, to give the file, is the most "correct", but 777 opens the file to everything.
Awesome Dude!!!
Kudos. Well done.
I have EL Capitan and I had the same problem.
This solution works perfect!! Thanks
OSX EL Capitan 10.11.3
Also works after that modification on
/Applications/Dia.app/Contents/Resources/bin/dia
Works for me on El Capitan 10.11.3 as well. The first time I tried it, I missed the word "export" .. maybe that will help other people. Also no restart needed and took a minute to launch but no crash! THANKS!
Thanks a lot dude, now I can finish my homework :D really appreciate this!
You saved me couple hours of trying to solve this, thank you body!!!
Oh yeah! Thanks for the fix. Now I can live the open source dream.
Fantastic! Worked with El Capitan 10.11.4 and Dia 0.97.2-7 (downloaded today 05Apr2016). Note to reference the screenshot for the location to add the export line, following line 39 may no longer be correct. Also, no restart required here.
Thanks so much!
Thanks so much!
Thanks!!!
THAAAAANKS A LOT! I had no idea what to do and I ended up working with W8 in a virtual machine :v
this is really helpful <3
unfortunately it didn't work for me neither. I'm using Yosemite 10.10.5.
When modifying the line 39 in dia file and trying to execute Dia, I get an error message saying that the file is corrupted if I want to move it to trash. :/
And after adding the line in the .profile and executing it with source .profile, I tried to open Dia but only X11 is launched. No Dia windows at all. :(
thx very much!!!
OS X EL Captain 10.11.4, dia-bin 0.97.2.
It worked out for me as well, Thank you very much.
Woooow.. u r great..i was searching for almost 2 days in google and started installing some unnecessary packages & libraries.. finally i found your blog & u saved my time from searching for the solution..
It worked for me, thanks.
It worked for me, thanks.
Thx worked for me as well!
WORKED FOR MEH. OS X El Captain. thanksss
Fix still working for dia 0.97.2 with OS X 10.11.5 El Capitan.
Thanks a lot.
Really, it's a great solution
Like a charm!!!
Another satisfied customer!!! Thanks for this great tip!!
It worked for me too! Great!!
OSX El Capitan!
Thanks for this blog.
It works, Thank You.
Perfect trick, worked like a charm. Thanks
Here is a complete guide to Save your Mac from Thunderstrike-2
It works! Many thanks! Maybe you can also provide help with uml2php5 plugin which only works on PC not on Mac.
Thank you, your fix worked for me, is the only information that is in the whole web , was a success
Nice trick, it works !
Many thanks Bro !! You saved my journey xD
Worked perfectly for me even for El Capitan 10.11.6, thank you!!!
If your Mac time machine backup get fails and you desperately wants to recover your valuable files then you can get solutions here.Read more...
Thanks ... solved the problem!
Post a Comment