Opened 3 years ago
Closed 2 years ago
#13076 closed defect (worksforme)
MACOS: ScummVM for macOS associates itself with Xcode project files
Reported by: | kode54 | Owned by: | kode54 |
---|---|---|---|
Priority: | normal | Component: | Port: Mac OS X |
Version: | Keywords: | ||
Cc: | kode54 | Game: |
Description
ScummVM 2.5.0 for macOS, when installed on macOS Monterey, associates itself with .xcodeproj files. When they are opened this way, ScummVM forwards the open to the other app that annoyingly takes over these files, Microsoft Visual Studio Code.
Setting individual files back to Xcode works only for individual files. When selecting any association and clicking the Change All... button, upon confirmation, it resets back to ScummVM.
The App's Info.plist appears to indicate that it associates itself as an alternate handler for literally every single file type, using a broad "All Files" handler.
Change History (5)
comment:1 by , 2 years ago
Summary: | ScummVM for macOS associates itself with Xcode project files → MACOS: ScummVM for macOS associates itself with Xcode project files |
---|
comment:2 by , 2 years ago
comment:3 by , 2 years ago
It may be fixed now. I will have to verify whether it still happens on 12.4.
comment:5 by , 2 years ago
Owner: | set to |
---|---|
Resolution: | → worksforme |
Status: | new → closed |
This might be an issue specific to macOS Monterey because I have never seen it on Big Sur on any of the macOS X variants.
The
LSHandlerRank
set toAlternate
should not cause ScummVM to be used by default to open those documents.The generic file type handling was added to allow Drag&Drop of any file to detect games.
Since I cannot reproduce the issue I will need some help to fix it.
Does it help if you add
CFBundleTypeRole
set toViewer
as well?We might otherwise have to restrict the CFBundleDocumentTypes. Note that
All files
is just a name and does not matter. What matters is the types listed in theLSItemContentTypes
array. A list of types can be found on https://developer.apple.com/library/archive/documentation/Miscellaneous/Reference/UTIRef/Articles/System-DeclaredUniformTypeIdentifiers.htmlWe could for example restrict to
public.directory
to only support dropping directories, which for detection would be acceptable.Also dropping on a ScummVM window is not impacted by this. The types listed in the Info.plist only control what files can be dropped on the application icon (e.g. in the Finder or in the Dock). So if