
Three signifigant chunks of my program require a specific executable to be run and actions performed on it during runtime (the latter of which is done externally).
However, file extensions are obviously different per-platform and so I was wondering how this is done (as I'm not a Mac or Linux user by any means, but the program certainly needs to ensure some compatibility).
Would this be anywhere near or am I way off?
Code: Select all
if the platform is "MacOS"\
then open file "xyz.app"
else if the platform is "Win32"\
then open file "xyz.exe"
else if the platform is "Linux"\
then /*open file "ohgodIdon'tknowwhattoputforLinux" */
/* How to go about permissions? */