MuseScore file type associations (Ubuntu)

• Feb 14, 2015 - 17:14
Type
Functional
Severity
S4 - Minor
Status
closed
Project
  1. MuseScore is not set as the default editor for .mscz, .mscx (or .mxl) files on Ubuntu 14.10.
  2. MuseScore does not appear on the right-click "Open with..." list of applications for any file types. This would be handy for directly opening MIDI or .mxl files in MuseScore, and would enable Ubuntu users to set it as the default program if they so choose.

The solution to (2) is easy: simply add "%f" to the line begining "Exec" in the mscore.desktop file (created in the "build" directory):

    [Desktop Entry]
    ...
    Exec=mscore %f
    ...

I'm not sure how to solve (1), but perhaps this is intentional for the nightly builds to allow coexistence with 1.3? However, I imagine that at this point anyone who has downloaded a nightly build has long since stopped using 1.3! :D

Anyway, I certainly don't see any problems with implementing (2) immediately.


Comments

Assuming then that you are talking about the experiemntal prerelease 2.0 builds, then I think both of these are just products of the fact that we don't have an official package for MuseScore 2.0 yet, so none of the usual things that might happen on installation are there yet. I could be wrong, and maybe there is more to it than that?

Status (old) active patch (code needs review)

Musescore seems to handle these by itself for Windows and Mac, but I think you may be right and on Linux it is up to the package maintainer to implement these features. That's probably true for (1) anyway, but it seems that even the release version of 1.3 in the Ubuntu repository is missing (2)! Since its such as easy fix I think it may be best to implement it now.

Anyway, I went ahead and made a pull request to implement (2), partly so I could learn how to use GitHub; its not easy by any means!
https://github.com/musescore/MuseScore/pull/1768