Patch to account for the fact that on macOS Mojave we may be denied access to the Photos library.
On Mojave, when IMBAppleMediaLibraryParser fails to obtain an AppleMediaSource for the Photos library, we check Photos preferences to see if a system library has been set and actually exists. If so, we were denied access. Suggest to the user to recover by changing privacy preferences.
The current implementation is not as clean as it could be, but should work for now.
IMBAppleMediaLibraryParser has code specific to Apple Photos. A delegate or subclass may be more appropriate.
The error includes a recovery URL rather than actual code to handle recovery. This allows the error to remain serializable, but reduces flexibility
Localized strings are available only in English, German and French
Patch to account for the fact that on macOS Mojave we may be denied access to the Photos library.
On Mojave, when IMBAppleMediaLibraryParser fails to obtain an AppleMediaSource for the Photos library, we check Photos preferences to see if a system library has been set and actually exists. If so, we were denied access. Suggest to the user to recover by changing privacy preferences.
The current implementation is not as clean as it could be, but should work for now.
IMBAppleMediaLibraryParser has code specific to Apple Photos. A delegate or subclass may be more appropriate.
The error includes a recovery URL rather than actual code to handle recovery. This allows the error to remain serializable, but reduces flexibility
Localized strings are available only in English, German and French