Need your wisdom dear Linux and mac fellows
edit: iOS too
A tiny script to open current score folder
import MuseScore 3.0 import QtQuick 2.9 MuseScore { menuPath: "Plugins.Open containing folder" QProcess { id: proc } onRun:{ var c switch (Qt.platform.os) { case "windows": c = 'explorer "'+curScore.path.match(/^(.*\/).*?$/)[1].replace(/\//g,'\\')+'"'; break; default: c = ' ' // need your help } proc.start(c) } }
Comments
On Linux
xdg-open
should do the right thing. On Mac just theopen
command should do the same. And, of course, there is no need to replace slashes in the path on both these systems.So the answer would be something like
(tested only on Linux)
In reply to On Linux xdg-open should do… by dmitrio95
Thank you.