diff options
author | Paul Gevers <elbrus@debian.org> | 2013-09-28 10:27:11 +0200 |
---|---|---|
committer | Paul Gevers <elbrus@debian.org> | 2017-08-06 11:12:22 -0400 |
commit | 963fe42b09f495a236f7aabedda462098d01f446 (patch) | |
tree | b7149de4f60df52bf3d56f8933344e5a3c05ae21 | |
parent | 7078c1e222a285169ff7bfd9477792598ff8dcb3 (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-x | unit1.pas | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |