Operating System
It seems that plugins which run other programs will need to know what operating system they are on, as the plugin code may need to do different things for different OS (an example is setting the classpath for a Java program; in Windows, you need to use a semi-colon to separate items on the classpath, but on Linux and perhaps the Mac, you need to use a colon.)
Can we have a new method in the QML framework so that plugins can work out the OS please?
Comments
Since 3.0 this is provided by Qt in the QML framework.
Something like
((Qt.platform.os == "windows")? "file:///" : "file://")
works for example when creating local file paths.