Search code examples
fileerlangpng

Erlang - open a file like double clicking on it


Is there a way in erlang to open file in the same way it will open when I double click it? Open using the application associated with the type of the file.

Specific I need to open png file.

Thanks!


Solution

  • This seems to work:

    os:cmd("xdg-open my-image.png").