In WIndows I use this:
dim oSys as object
dim path as variant
path = “C:file.pdf” (for example)
oSys = CreateUnoService(“com.sun.star.system.SystemShellExecute”)
oSys.execute(path, “”, 0)
to open a PDF (and Windows finds some installed pdf-reader).
In Linux this does not work.
On a command-line “gnome-open file.pdf” works fine. Evince is the pdf-reader here.
But how do I “wrap” this in a macro, instead of the command-line?