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