17 January, 2022

[SOLVED] Dia Diagram Editon Cannot Launch in MacOS

Run Dia from the terminal
Run it via this command in the terminal:

# DISPLAY=:0 /Applications/Dia.app/Contents/Resources/bin/dia


Launch via alias
Since it is often used, try to create an alias for the terminal:

# alias dia='DISPLAY=:0 /Applications/Dia.app/Contents/Resources/bin/dia'

In order to run dia, simply write this in the terminal

# dia

Unfortunately you'll have to run Dia from the terminal every time. Methinks this is a serious bug - since most users want something that will run out of the box. 

Make the alias permanent
In the termina edit the file .zshrc (og alternatively .bash-profile):

# nano .zshrc

Finally add these lines somewhere convenient in the file:

# Dia launch from the terminal
alias dia='DISPLAY=:0 /Applications/Dia.app/Contents/Resources/bin/dia'

No comments: