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

On my linux mint/debian boxes, xdg-open works fine across MATE, XFCE, and KDE.


On Thu, Jun 27, 2013 at 8:15 AM, Sietse Brouwer <sbbrouwer@gmail.com> wrote:
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
___________________________________________________________________________________