简体   繁体   English

Erlang - 打开一个文件就像双击它

[英]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? erlang 中有没有办法以双击打开文件的方式打开文件? Open using the application associated with the type of the file.使用与文件类型关联的应用程序打开。

Specific I need to open png file.具体我需要打开png文件。

Thanks!谢谢!

这似乎有效:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM