For macOS Mojave/Catalina this file is located at:
~/Library/Preferences/com.apple.LaunchServices/com.apple.launchservices.secure.plist
~/Library/Preferences/com.apple.LaunchServices/com.apple.launchservices.secure.plist
defaults read ~/Library/Preferences/com.apple.LaunchServices/com.apple.launchservices.secure.plist
defaults read ~/Library/Preferences/com.apple.LaunchServices/com.apple.launchservices.secure.plist
sampleSample output:
$ defaults read ~/Library/Preferences/com.apple.LaunchServices/com.apple.launchservices.secure.plist
{
LSHandlers = (
{
LSHandlerContentType = "public.3gpp";
LSHandlerPreferredVersions = {
LSHandlerRoleAll = "-";
};
LSHandlerRoleAll = "com.colliderli.iina";
},
{
LSHandlerContentType = "org.7-zip.7-zip-archive";
LSHandlerPreferredVersions = {
LSHandlerRoleViewer = "-";
};
LSHandlerRoleViewer = "com.aone.keka";
},
{
LSHandlerPreferredVersions = {
LSHandlerRoleAll = "-";
};
LSHandlerRoleAll = "com.apple.dt.xcode";
LSHandlerURLScheme = xcpref;
},
{
LSHandlerContentType = "public.html";
LSHandlerPreferredVersions = {
LSHandlerRoleAll = "-";
};
LSHandlerRoleAll = "com.apple.safari";
}
);
}
[Comments and edits are welcome][Comments and edits are welcome]