summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-office/texstudio/files/texstudio-2.5-viewers-use-xdg-open.patch')
-rw-r--r--app-office/texstudio/files/texstudio-2.5-viewers-use-xdg-open.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/app-office/texstudio/files/texstudio-2.5-viewers-use-xdg-open.patch b/app-office/texstudio/files/texstudio-2.5-viewers-use-xdg-open.patch
new file mode 100644
index 000000000000..667ee3186b34
--- /dev/null
+++ b/app-office/texstudio/files/texstudio-2.5-viewers-use-xdg-open.patch
@@ -0,0 +1,42 @@
+From f9a633402c81b7c252e33c0d9386ba4b48fcde7c Mon Sep 17 00:00:00 2001
+From: hannes <hannes@fedoraproject.org>
+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 ""; }
+