duplicati/ReleaseBuilder/Resources/MacOS/AppBundle/app-resources/Info.plist
Kenneth Skovhede 3b695cf065 Added support for Photos on MacOS
This PR adds detection of the MacOS Photos folder, and intercepts reads and replaces them with PhotoKit calls.
With this, it is possible to make backups of all MacOS Photos, even if they are not stored locally.

The previous versions would just make a backup of the on-disk structure, which was not guaranteed to contain all photos, but instead has various indexing for finding photos, and may contain some original photos.

The option `--photos-handling` controls how Duplicati now deals with the Photos folder. The options are:
- `LibraryOnly`: Same as before, just treat it as a folder
- `PhotosOnly`: Ignore the folder contents and just back up the actual photos
- `PhotosAndLibrary` (default): Make a backup of the photos and the library on-disk. This may cause images to be stored twice, but de-duplication will usually limit the storage increase.

The option `--photos-library-path` can be used to point to the on-disk Photo library that should be handled, in case the auto-detection does not pick it up. If this does not point to a valid Photoslibrary, or the path is not being backed up, no special handling will be done.

Note that the restore is not restoring into Photos itself, but instead restores into a sub-folder in the Photolibrary that is called `dup_backup`. To get the photos out after a restore, one needs to right-click the Photolibrary folder, and choose "Show package contents" and then the `dup_backup` folder is revealed.

This is done to keep all photos in the same folder, but avoid messing with the structure of the on-disk Photolibrary.

A future update could allow restoring back into Photos, and metadata is captured for each image to eventually allow this.

This fixes #6381
2025-11-17 17:12:10 +01:00

54 lines
2.3 KiB
Text

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>duplicati</string>
<key>CFBundleIconFile</key>
<string>Duplicati.icns</string>
<key>CFBundleIdentifier</key>
<string>com.duplicati.app</string>
<key>NSHighResolutionCapable</key>
<true/>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>Duplicati</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>SUBL</string>
<key>CFBundleVersion</key>
<string>!LONG_VERSION!</string>
<key>CFBundleDisplayName</key>
<string>Duplicati</string>
<key>CFBundleShortVersionString</key>
<string>!LONG_VERSION!</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>LSUIElement</key>
<true />
<!-- Privacy usage descriptions -->
<key>NSPhotoLibraryUsageDescription</key>
<string>Duplicati needs access to your Photos Library to back up your images.</string>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>This app needs to add items to your photo library for restoring your images.</string>
<key>NSDownloadsFolderUsageDescription</key>
<string>Duplicati needs access to your Downloads folder to include files in your backups.</string>
<key>NSDocumentsFolderUsageDescription</key>
<string>Duplicati needs access to your Documents folder to include files in your backups.</string>
<key>NSDesktopFolderUsageDescription</key>
<string>Duplicati needs access to your Desktop folder to include files in your backups.</string>
<key>NSRemovableVolumesUsageDescription</key>
<string>Duplicati needs access to external drives for backup and restore operations.</string>
<key>NSNetworkVolumesUsageDescription</key>
<string>Duplicati needs access to network drives for backup and restore operations.</string>
<key>NSAppleEventsUsageDescription</key>
<string>Duplicati may run scripts that need to control other apps using AppleScript for automation purposes.</string>
<key>NSSystemAdministrationUsageDescription</key>
<string>Duplicati may require administrative privileges for system-wide backups and operations.</string>
</dict>
</plist>