Opened 17 months ago
Closed 10 months 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|
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 , 10 months ago
|Summary:||ScummVM for macOS associates itself with Xcode project files → MACOS: ScummVM for macOS associates itself with Xcode project files|
comment:2 by , 10 months ago
comment:3 by , 10 months ago
It may be fixed now. I will have to verify whether it still happens on 12.4.
comment:4 by , 10 months ago
This appears to no longer happen on 12.4. Closing.
comment:5 by , 10 months ago
|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.
Alternateshould 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
We might otherwise have to restrict the CFBundleDocumentTypes. Note that
All filesis just a name and does not matter. What matters is the types listed in the
LSItemContentTypesarray. A list of types can be found on https://developer.apple.com/library/archive/documentation/Miscellaneous/Reference/UTIRef/Articles/System-DeclaredUniformTypeIdentifiers.html
We could for example restrict to
public.directoryto 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