Instead of choosing our own default PDF viewer, we should probably
invoke the user's default PDF viewer. Every OS has a command-line
program to open a file with the system default program:
On OS X:
open myfile.pdf
On Windows:
start myfile.pdf
On Linux, there separate programmes for KDE, new gnome and old gnome,
and desktop-agnostic:
kde-open myfile.pdf || gvfs-open myfile.pdf || gnome-open myfile.pdf
|| xdg-open myfile.pdf
Cheers,
Sietse
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________