From f9a633402c81b7c252e33c0d9386ba4b48fcde7c Mon Sep 17 00:00:00 2001 From: hannes Date: Sun, 9 Sep 2012 10:56:06 +0200 Subject: [PATCH] viewer --- buildmanager.cpp | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git buildmanager.cpp buildmanager.cpp index ac7027a..ac913d0 100644 --- buildmanager.cpp +++ buildmanager.cpp @@ -762,25 +762,13 @@ // xdvi %.dvi -sourceposition @:%.tex // kdvi "file:%.dvi#src:@ %.tex" QString getCommandLineViewDvi(){ - switch (x11desktop_env()) { - case 3: return "kdvi %.dvi > /dev/null"; - case 4: return "okular %.dvi > /dev/null"; - default:return "evince %.dvi > /dev/null"; - } + return "xdg-open %.dvi > /dev/null"; }; QString getCommandLineViewPs(){ - switch (x11desktop_env()) { - case 3: return "kghostview %.ps > /dev/null"; - case 4: return "okular %.ps > /dev/null"; - default: return "evince %.ps > /dev/null"; - }; + return "xdg-open %.ps > /dev/null"; } QString getCommandLineViewPdfExternal(){ - switch (x11desktop_env()) { - case 3: return "kpdf %.pdf > /dev/null"; - case 4: return "okular %.pdf > /dev/null"; - default: return "evince %.pdf > /dev/null"; - }; + return "xdg-open %.pdf > /dev/null"; } QString getCommandLineGhostscript(){ return ""; }