I work in an OS-independent file manager (mainly Windows and Linux), and I am wondering if there is a way to open a Linux file in my default viewer. For example, open an html file with Firefox, .avi with vlc, etc. On Windows, there is a ShellExecute () function that does this, but I understand that on Linux this is not so simple, and every desktop environment has a specific path. I would appreciate any help with this.
source
share