My default application for opening PDF files is Adobe Acrobat XI Pro.
I would like to be able to open PDF files using this program via the Windows Subsystem for Linux.
Currently when I run xdg-open main.pdf
I am getting this output:
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/%{ <-- HERE (.*?)}/ at /usr/bin/run-mailcap line 528.
Error: no "view" rule for type "application/pdf" passed its test case
(for more information, add "--debug=1" on the command line)
/usr/bin/xdg-open: 778: /usr/bin/xdg-open: www-browser: not found
/usr/bin/xdg-open: 778: /usr/bin/xdg-open: links2: not found
/usr/bin/xdg-open: 778: /usr/bin/xdg-open: elinks: not found
/usr/bin/xdg-open: 778: /usr/bin/xdg-open: links: not found
/usr/bin/xdg-open: 778: /usr/bin/xdg-open: lynx: not found
/usr/bin/xdg-open: 778: /usr/bin/xdg-open: w3m: not found
xdg-open: no method available for opening 'main.pdf'
Running xdg-mime query default application/pdf
gives me evince.desktop
. I am not sure what this is.
Running grep -i "pdf" /usr/share/applications/defaults.list
gives me:
application/pdf=evince.desktop
application/x-bzpdf=evince.desktop
application/x-gzpdf=evince.desktop
application/x-xzpdf=evince.desktop
/mnt/...
you could reverse-engineer the host paths (i.e. turn/mnt/c/foo/bar.pdf
intoC:\foo\bar.pdf
) and launch Acrobat against that, but otherwise I think you're out of luck for the moment. It's going to be a bit tricky even afterwards but I imagine someone will build the tooling once it's doable.