To make my Real Studio application portable, I want to make it open an executable file on Mac, Windows, and Linux with the default Console/Terminal application. I have a string s, which is the filename of the executable file. I have this so far:
#If TargetMacOS
DIM sh As new Shell
sh.Execute "open " + GetFolderItem(s).ShellPath + " -a Terminal"
#EndIf
But how can this be done on Windows and Linux? For Linux, could I open the file with gnome-terminal
or konsole
, and if so how could I figure out which one to open it with?