From e9b106503d9da08e33ba7ff1433d6c0deb3bafc2 Mon Sep 17 00:00:00 2001 From: hannes Date: Fri, 20 Jun 2014 19:26:55 +0200 Subject: [PATCH 3/3] xdg --- buildmanager.cpp | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/buildmanager.cpp b/buildmanager.cpp index d4c8a83..a33a04b 100644 --- a/buildmanager.cpp +++ b/buildmanager.cpp @@ -826,25 +826,13 @@ QString getCommandLineGhostscript(){ // 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 ""; } -- 1.9.3