Open JohanSpaedtke opened 2 hours ago
On macOS, there is no such concept as "stealing" file types. MuseScore can only statically specify in its metadata that it can read .md files. The decision to immediately make it the default app for .md files is completely macOS's decision; MuseScore can't influence that.
What might help, is if we do not only list .md
as an extension in CFBundleDocumentTypes
, but also in UTImportedTypeDeclarations
, to make very clear to macOS that MuseScore is not the "owner" of the md
format, but probably this doesn't work because UTImportedTypeDeclarations
doesn't have any influence on whether MuseScore appears in the "Open with…" list or not, according to https://stackoverflow.com/questions/21937978/what-are-utimportedtypedeclarations-and-utexportedtypedeclarations-used-for-on-i. (That page is about iOS, but it's the same on macOS).
(Incidentally, the MuseData file format is not related to Muse or MuseScore, see http://www.ccarh.org/publications/books/beyondmidi/online/musedata/; MuseScore only supports it as an import format.)
I'm not an app-developer so I won't argue with you since I have no idea how those things work. All I know is that I've installed both IDEs and text editors which all have some sort of "markdown support" and my default application for markdown editors has always stayed untouched.
Of course it might be the case that eg. Sublime and/or IntelliJ don't "register" that they can read .md files and just let's you open them anyway.
I just found it a bit weird to have my default application for a file type change without me doing anything so I thought I'd mention it here in the hopes that something could be done about it but if you have to register CFBundleDocumentTypes
for stuff to work and then macOS does the changing then I guess there isn't really much to do :)
Issue type
Other type of issue
Description with steps to reproduce
Expected behaviour
If I already have a default app for my .md files (which is widely used to mean Markdown) then MuseScore should not "steal" that file ending
Supporting files, videos and screenshots
Not really sure what to put here
What is the latest version of MuseScore Studio where this issue is present?
MuseScore Studio version (64-bit): 4.4.3-242971445, revision: github-musescore-musescore-eb6b367
Regression
I was unable to check
Operating system
macOS 14.6, Arch.: x86_64
Additional context
No response
Checklist