summarylogtreecommitdiffstats
path: root/foxitreader.patch
blob: 8fea57cb3e793b176aba7bf07aec02d009cf9b2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
diff -Naur foxitreader.orig/FoxitReader.desktop foxitreader/FoxitReader.desktop
--- foxitreader.orig/FoxitReader.desktop	2018-02-13 18:54:39.000000000 +0100
+++ foxitreader/FoxitReader.desktop	2018-10-28 16:55:01.954090619 +0100
@@ -1,10 +1,12 @@
 [Desktop Entry]
 Name=Foxit Reader
-Comment=View pdf documents
+Comment=View PDF documents
 Keywords=pdf;ppdf;
 StartupNotify=true
 Terminal=false
 Type=Application
 Categories=Application;Office;Viewer;X-Red-Hat-Base;
 MimeType=application/pdf;application/ppdf;
-Icon=FoxitReader
+Icon=foxitreader
+Exec=foxitreader %F
+
diff -Naur foxitreader.orig/FoxitReader.sh foxitreader/FoxitReader.sh
--- foxitreader.orig/FoxitReader.sh	2018-02-13 16:57:48.000000000 +0100
+++ foxitreader/FoxitReader.sh	2018-10-28 16:54:35.792773802 +0100
@@ -1,3 +1,5 @@
 #!/bin/sh
- appname="FoxitReader"
-
+appname="FoxitReader"
+selfpath="$(dirname $(readlink -f "$0"))"
+export LD_LIBRARY_PATH="${selfpath}/lib:${selfpath}/platforms:${selfpath}/printsupport:${selfpath}/rmssdk:${selfpath}/sensors:${selfpath}/imageformats:${selfpath}/platforminputcontexts"
+exec "${selfpath}/${appname}" "$@"