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 aquadran, 2 years ago

Summary: ScummVM for macOS associates itself with Xcode project filesMACOS: ScummVM for macOS associates itself with Xcode project files

comment:2 by criezy, 2 years ago

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 to Alternate 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 to Viewer 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 the LSItemContentTypes array. 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.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

comment:3 by kode54, 2 years ago

It may be fixed now. I will have to verify whether it still happens on 12.4.

comment:4 by kode54, 2 years ago

This appears to no longer happen on 12.4. Closing.

comment:5 by kode54, 2 years ago

Owner: set to kode54
Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.