png viewer not opening

asked 2020-11-09 14:05:00 +0200

Darius gravatar image

updated 2020-11-10 08:28:08 +0200

FrédéricC gravatar image

Using Linux subsystem for windows with ubuntu 20.04 and sagemath 9.0

When I try to open a png plot from sagemath I get the message that it opens however nothing happens.

Launched png viewer for Graphics object consisting of 1 graphics primitive

However sagemath viewer is configured correctly

sage: viewer.png_viewer()

And the most peculiar thing is that by attempting to open a png file from shell trough sagemath it can with an error that persists even if I open the png without sagemath.

sage -sh xdg-open test.png


xdg-open test.png

Opens the png successfully and returns this error message

Error: no "view" rule for type "image/png" passed its test case
       (for more information, add "--debug=1" on the command line)

And when I add --debug=1 the command is no longer recognized

edit retag flag offensive close merge delete


This must be some oddity of the Linux subsystem for Windows, because sage -sh xdg-open test.png works well with native Ubuntu 20.04.

eric_g gravatar imageeric_g ( 2020-11-11 16:36:23 +0200 )edit