[GraphWriter] Attempt to open .dot files with xdg-open/open first
authorMatthias Braun <matze@braunis.de>
Fri, 3 Apr 2015 17:22:36 +0000 (17:22 +0000)
committerMatthias Braun <matze@braunis.de>
Fri, 3 Apr 2015 17:22:36 +0000 (17:22 +0000)
commitde6157ce1e56db2ef7d35872df758ea40f188adc
tree58442dc1f88fc15f3661f471cb1eb71f68f2c15e
parent0b654728bc771e2e911d12752332003394ea7d9d
[GraphWriter] Attempt to open .dot files with xdg-open/open first

Most desktop environments let the users specify his preferred application per
file type. On mac/linux we can use open/xdg-open for that and should try this
first before starting a heuristic search for various programs.

Differential Revision: http://reviews.llvm.org/D6534

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234031 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/GraphWriter.cpp