Repository navigation
Description
Bug description
Installing Audacity 4.app (org.audacityteam.audacity4 v4.0.2) on macOS causes LaunchServices to silently take over default file associations for over 120 non-Audacity formats—including video files (.mp4, .mkv, .m4v, .flv), audio files (.flac, .ogg, .opus, .aac), subtitle files (.srt, .vtt), and unrelated files (.mm Objective-C++ source, .raw camera RAW images, .ts, .cgi)
Steps to reproduce
- Install
Audacity 4.app(version 4.0.2) into/Applicationson macOS (without having previously pinned customLSHandlersfor.mp4,.mkv,.flac, etc., and with a media player such as IINA installed). - Let LaunchServices register the application bundle (e.g., open Finder in
/Applicationsor launch Audacity once). - Double-click an
.mp4,.mkv,.flac,.ogg,.srt,.mm, or.rawfile in Finder, or inspect its default handler via "Get Info" /NSWorkspace.shared.urlForApplication(toOpen:).
Expected behavior
- Audacity should only claim
CFBundleTypeRole = Editorfor its own native project formats (.aup4,.aup3,.aup,.aup4unsaved). - Imported/exported media formats (
Audio File,FFmpeg Media File) andLabel File(.txt,.srt,.vtt) should useCFBundleTypeRole = Viewer(orNone) so Audacity appears in "Open With" without hijacking default handlers from media players (such as IINA) or code/text editors. - Unrelated/ambiguous extensions (
.mm,.raw,.cgi,.sdp,.gif,.txt) should be omitted fromCFBundleDocumentTypes.
Actual behavior
Over 120 extensions immediately switch their default application to /Applications/Audacity 4.app (e.g. .mp4, .mkv (io.iina.mkv), .m4v, .flv, .ts, .flac, .ogg, .opus, .aac, .srt, .vtt, .mm, .raw), so double-clicking them in Finder launches Audacity 4.0.2 instead of IINA, VS Code, or Preview.
Audacity Version
Audacity 4.0.2
Operating system
macOS
Additional context
My agent inspecting /Applications/Audacity 4.app/Contents/Info.plist, told me that CFBundleDocumentTypes declares 138 extensions across Audacity File, Audio File, FFmpeg Media File, and Label File, and sets CFBundleTypeRole = Editor on all of them (with LSItemContentTypes omitted):
Audio File(Role: Editor):aif, aiff, au, avr, caf, flac, flc, htk, iff, ircam, mat, mp2, mp3, mpa, mpc, oga, ogg, opus, paf, pvf, raw, rf64, sd2, sds, sf, snd, sv16, svx, svx8, voc, w64, wav, wv, wve, xiFFmpeg Media File(Role: Editor): includesmp4, mkv, m4v, m4a, flv, gif, ts, mov, avi, aac, ac3, dts, wma, wmv, mm, cgi, sdp, ...Label File(Role: Editor):srt, txt, vtt
macOS LaunchServices ranks Editor above Viewer (which players like IINA properly declare in their Info.plist) whenever no explicit user override exists in LSHandlers, Audacity 4.0.2 overrides default handlers even for io.iina.mkv and io.iina.ape.
Related issues:
- Drag and drop to app icon doesn't open file in Audacity 4 #11961 (macOS drag-and-drop /
Info.plistdocument types) - Audacity 4 installer: add options to avoid creating shortcuts and registering some file associations #11938 (Windows installer registering unwanted file associations like
.srt/.vtt)
Activity