moretension / duti

A command-line tool to select default applications for document types and URL schemes on Mac OS X
Other
1.41k stars 66 forks source link

Reassociation does not work properly #56

Open frozenspider opened 5 months ago

frozenspider commented 5 months ago

In the past, I used duti v1.5.4_1 (in the form of duti -v input-file.duti if that's of any significance) to associate a bunch of text format with VS code (UTI com.microsoft.VSCode). As far as I remember, that worked out fine.

However, later on macOS Sonoma 14.2.1 I decided that VS code is too resource-hungry to serve as a general-purpose text editor and switched to Sublime Text (UTI com.sublimetext.4). I tried to reassociate text formats with it (using the same duti -v) and this lead to a weird situation.

When right-clicking text files in Finder, it shows Open With > Sublime Text.app (default).

image

Get Info > Open With shows pretty much the same:

image

However, when double-clicking a file, it opens in VS code!

If I change an app in Get Info > Open With to something else and then back to Sublime Text, and then click Change All, files of this extension will now properly open in Sublime Text upon double click. However, this defeats the purpose of using duti to begin with.

mxcl commented 5 months ago

Yeah I can reproduce, duti no longer seems to work while before the latest macOS major it did. No clue why.

resistor4u commented 3 months ago

Is it a permissions/sandbox thing?