怎么为graphviz dot文件设置默认程序
Tofloor
poster avatar
lifengg
deepin
2017-03-21 05:06
Author
我安装了graphviz,有dotty, dot等程序。我希望默认用dotty打开.dot文件。

目前系统自动用WPS打开.dot文件。
Reply Favorite View the author
All Replies
avatar
lifengg
deepin
2017-03-26 06:29
#1
From http://stackoverflow.com/:

1. Choice one: Open a terminal where your file is and execute command:
mimeopen -d your_dag.dot
there is the output:
Please choose a default application for files of type application/x-ms-dos-executable
    1) wps
    2) ...
    3) Other...
use application #3
use command: dotty %f

2. Choice two: Generic way
mimeopen .dot
and then do the step above.

Then, check ~/.local/share/applications/default.list:
lifeng@lifeng-pc:~/.local/share/applications$ cat defaults.list
[Default Applications]
text/vnd.graphviz=graphviz.desktop; // you may use a different name for .desktop
Reply View the author