2 replaced http://stackoverflow.com/ with https://stackoverflow.com/
source | link

It's not as simple as changing the path based on the locale. The Photos library could be renamed and moved anywhere. You can find the current library by extracting the IPXDefaultLibraryURLBookmark from the Photos plist.

/usr/libexec/PlistBuddy -c "print IPXDefaultLibraryURLBookmark" \
~/Library/Containers/com.apple.Photos/Data/Library/Preferences/com.apple.Photos.plist

The IPXDefaultLibraryURLBookmark contains a CFURLRef. This will require deserialising.This will require deserialising.

It's not as simple as changing the path based on the locale. The Photos library could be renamed and moved anywhere. You can find the current library by extracting the IPXDefaultLibraryURLBookmark from the Photos plist.

/usr/libexec/PlistBuddy -c "print IPXDefaultLibraryURLBookmark" \
~/Library/Containers/com.apple.Photos/Data/Library/Preferences/com.apple.Photos.plist

The IPXDefaultLibraryURLBookmark contains a CFURLRef. This will require deserialising.

It's not as simple as changing the path based on the locale. The Photos library could be renamed and moved anywhere. You can find the current library by extracting the IPXDefaultLibraryURLBookmark from the Photos plist.

/usr/libexec/PlistBuddy -c "print IPXDefaultLibraryURLBookmark" \
~/Library/Containers/com.apple.Photos/Data/Library/Preferences/com.apple.Photos.plist

The IPXDefaultLibraryURLBookmark contains a CFURLRef. This will require deserialising.

1
source | link

It's not as simple as changing the path based on the locale. The Photos library could be renamed and moved anywhere. You can find the current library by extracting the IPXDefaultLibraryURLBookmark from the Photos plist.

/usr/libexec/PlistBuddy -c "print IPXDefaultLibraryURLBookmark" \
~/Library/Containers/com.apple.Photos/Data/Library/Preferences/com.apple.Photos.plist

The IPXDefaultLibraryURLBookmark contains a CFURLRef. This will require deserialising.