Yuval Froman
Yuval Froman

Reputation: 91

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!

Upvotes: 1

Views: 83

Answers (1)

legoscia
legoscia

Reputation: 41578

This seems to work:

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

Upvotes: 1

Related Questions