This generates the error: Exception - Cannot run program “musescore.mscore”: error = 2, No such file or directory.
I would be grateful for some advice as to whether this is possible and, if so, what would need to be done to make it work.
i think the re-write (userd ?) of the snapd-xdg-open tool we used to have was supposed to add more flexibility for exactly such use-cases but i dont think it does currently allow more than http/https/help protocols and does not hand over mime-types …
The default Musescore file format is a ZIP archive(compressed) and an XML markup file(uncompressed), and thus if the file is opened from the other snap it will only launch File Roller and Gedit by default in Ubuntu desktop
Although it’s not a direct solution to your problem, an alternative approach that you could take is to embed the Musescore snap in your snap. An an example of this is a part like this in your snap (demonstrating embedding Mosquitto):
If Musescore is a dependency for your snap and there is no direct interface to Musescore, then this seems reasonable to me. You can just embed the parts of Musescore that you need.
Hi chipaca,
I am checking for the existence of the musescore snap by:
if (new File("/snap/musescore").exists())
But, in any event, I should have realised my approach was not going to work as snaps are not allowed to access each other’s data by default as pointed out by jdstrand in call for testing MuseScore v 2.1.0.