Operating System

• Sep 12, 2012 - 20:19
Type
Plugins
Severity
S5 - Suggestion
Status
closed
Regression
No
Workaround
No
Project

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

Status active closed
Regression No
Workaround No

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.