summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gevers <elbrus@debian.org>2013-09-28 10:27:11 +0200
committerPaul Gevers <elbrus@debian.org>2017-08-06 11:12:22 -0400
commit963fe42b09f495a236f7aabedda462098d01f446 (patch)
treeb7149de4f60df52bf3d56f8933344e5a3c05ae21
parent7078c1e222a285169ff7bfd9477792598ff8dcb3 (diff)
add default pdf laucher to list of pdf viewers
Upstream has a hardcoded list of programs to look for to show pdf documentation. However, on Debian systems we have xdg-open to open the user's default pdf viewer. Forwarded: no Gbp-Pq: Name add-default-pdf-laucher-to-list-of-pdf-viewers.patch
-rwxr-xr-xunit1.pas2
1 files changed, 2 insertions, 0 deletions
diff --git a/unit1.pas b/unit1.pas
index 47d51ca..fb7f767 100755
--- a/unit1.pas
+++ b/unit1.pas
@@ -1390,10 +1390,12 @@ s:string;
begin
{$ifdef linux}
s:='';
+ if fileexists('/usr/bin/okular') then s:='/usr/bin/okular';
if fileexists('/usr/bin/evince') then s:='/usr/bin/evince';
if fileexists('/usr/bin/kpdf') then s:='/usr/bin/kpdf';
if fileexists('/usr/bin/xpdf') then s:='/usr/bin/xpdf';
if fileexists('/usr/bin/acroread') then s:='/usr/bin/acroread';
+ if fileexists('/usr/bin/xdg-open') then s:='/usr/bin/xdg-open';
if s='' then
begin
Showmessage('More information can be found at ' + pdffile);