The user should be in control of where the file is placed and putting it in /tmp by default is probably not the best idea anyway because if you download and open a score, you probably want to keep it and /tmp isn’t meant for persistent storage. If the way musescore works is if you want to keep it then you must ‘Save As’ (or something), then that should still work fine-- you save it to home somewhere.
Why is firefox defaulting to putting it there? Firefox has a way to configure this (about:preferences, then under the General tab). Two things seem to influence this: setting the directory and setting to always ask where to put the file (see https://askubuntu.com/questions/816983/firefox-browser-ubuntu-converting-all-my-downloads-to-tmp-files). Perhaps the musescore site is written in a way that it makes the files look like temporary files instead of regular downloads (I don’t the site or how to influence firefox in this regard…).
As for the general situation of sharing files via /tmp-- this is not supported at this time for the reasons I mentioned before because /tmp is something different to the snap and to the system’s firefox. It is technically possible to make using the per-snap /tmp optional, but I’m not sure this fits into the project’s plans. At a minimum, it would be confusing that some apps could see the system /tmp and others could not. An architect would have to weigh in on this.
I use it under Ubuntu, and wanted to export to MP3 format. This requires the installation of the lame libraries, since they are missing from the snap – but I’m not sure how to do this properly (in a “controlled manner” apart from hacking them into the snap somehow.
I have the libraries installed “locally” (they work with the non-snap 2.0.3 version), which is obviously not enough. I can see that other snaps (like VLC) comes with the library installed locally to the snap.
When opening a file in MuseScore, I can navigate down through my home directory to find files but when I try and navigate through the snap directory, all I see is the musescore subdirectory.
I have MusicXML files generated from another snappy application under the snap directory which I would like to import into MuseScore.
It would seem that MuseScore doesn’t see the other application in the snap directory.
Is there a solution to this or is there a recommended way of importing files produced from other strict confinement snaps.
Any advice would be appreciated.
Snaps intentionally are not allowed to access each other’s data by default. The way to share data between snaps is typically via the content interface: The content interface. Alternatively, if musecore and your snap both plugs the home interface, your snap could put/export its data to somewhere in /home, then the musecore could look for the file there.
Snaps intentionally are not allowed to access each other’s data by default. The way to share data between snaps is typically via the content interface: The content interface1. Alternatively, if musecore and your snap both plugs the home interface, your snap could put/export its data to somewhere in /home, then the musecore could look for the file there.
Thanks for this answer. I was not intending to use the home interface as I understand this requires manual approval for my snap. Instead, I have created a desktop shortcut which runs a shell script which uses rsync commands to copy my output files to a directory in home. I am able to distribute this with my snap and users can copy the desktop shortcut to ~/.local/share/applications.