summarylogtreecommitdiffstats
path: root/foxitreader.patch
blob: d77455af6645d1aa554daeb3bbe2df2765c7df74 (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
diff -Naur foxitreader.orig/usr/lib/foxitreader/FoxitReader.desktop foxitreader/usr/lib/foxitreader/FoxitReader.desktop
--- foxitreader.orig/usr/lib/foxitreader/FoxitReader.desktop	2016-02-16 15:23:41.000000000 +0100
+++ foxitreader/usr/lib/foxitreader/FoxitReader.desktop	2016-04-25 21:26:52.134050652 +0200
@@ -1,10 +1,11 @@
 [Desktop Entry]
 Name=Foxit Reader
-Comment=View pdf documents
+Comment=View PDF documents
 Keywords=pdf;octet-stream;
 StartupNotify=true
 Terminal=false
 Type=Application
 Categories=Application;Office;Viewer;X-Red-Hat-Base;
 MimeType=application/pdf;application/octet-stream;
-Icon=FoxitReader
+Icon=foxitreader
+Exec=foxitreader %F
diff -Naur foxitreader.orig/usr/lib/foxitreader/FoxitReader.sh foxitreader/usr/lib/foxitreader/FoxitReader.sh
--- foxitreader.orig/usr/lib/foxitreader/FoxitReader.sh	2016-02-16 15:23:41.000000000 +0100
+++ foxitreader/usr/lib/foxitreader/FoxitReader.sh	2016-04-25 21:32:42.102968443 +0200
@@ -1,3 +1,5 @@
 #!/bin/sh
- appname="FoxitReader"
-
+appname="FoxitReader"
+selfpath="$(dirname $(readlink "$0"))"
+export LD_LIBRARY_PATH="${selfpath}/lib:${selfpath}/platforms:${selfpath}/printsupport:${selfpath}/rmssdk:${selfpath}/sensors:${selfpath}/imageformats:${selfpath}/platforminputcontexts"
+exec "${selfpath}/${appname}" "$@"