Working directory plugin creator

• Aug 15, 2018 - 18:04
Reported version
3.0
Type
Plugins
Severity
S5 - Suggestion
Status
closed
Regression
No
Workaround
No
Project

It would be really useful if the working directory of the plugins run through the "Plugin Creator" would be the same of the plugins run through the user interface. Indeed, when a plugin is run through the "Plugin Creator", the working dir is the user home (at least on Linux); instead, when it is run through the normal user interface, the working directory is the plugin directory.

Code for testing (also attached):

import QtQuick 2.0
import MuseScore 1.0
 
MuseScore {
      menuPath: "Plugins.working dir"
      description: "working dir test"
      version: "1.0"
      id: mscore
      onRun: {
            console.log("hello world")
            console.log(Qt.resolvedUrl("."))
            }     
}
Attachment Size
test.qml 296 bytes

Comments

Fix version
3.4.0