]> dgit.raspbian.org Git - nextcloud-desktop.git/commitdiff
Add lock/unlock actions in FileProviderUIExt info plist
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Tue, 30 Jul 2024 08:19:29 +0000 (16:19 +0800)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Thu, 12 Sep 2024 07:50:50 +0000 (09:50 +0200)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/Info.plist

index 85f108b15fc9600363f5398ea8ec4e7e20633211..3f843aaed12c38fcbb6eb1a246ae646094cff1c2 100644 (file)
@@ -2,16 +2,32 @@
 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
 <plist version="1.0">
 <dict>
-    <key>CFBundleName</key>
-    <string>$(PRODUCT_NAME)</string>
-    <key>CFBundleDisplayName</key>
-    <string>$(OC_APPLICATION_NAME) File Provider UI Extension</string>
-    <key>CFBundleIdentifier</key>
-    <string>$(OC_APPLICATION_REV_DOMAIN).$(PRODUCT_NAME)</string>
+       <key>CFBundleName</key>
+       <string>$(PRODUCT_NAME)</string>
+       <key>CFBundleDisplayName</key>
+       <string>$(OC_APPLICATION_NAME) File Provider UI Extension</string>
+       <key>CFBundleIdentifier</key>
+       <string>$(OC_APPLICATION_REV_DOMAIN).$(PRODUCT_NAME)</string>
        <key>NSExtension</key>
        <dict>
                <key>NSExtensionFileProviderActions</key>
                <array>
+                       <dict>
+                               <key>NSExtensionFileProviderActionIdentifier</key>
+                               <string>com.nextcloud.desktopclient.FileProviderUIExt.UnlockFileAction</string>
+                               <key>NSExtensionFileProviderActionName</key>
+                               <string>Unlock file</string>
+                               <key>NSExtensionFileProviderActionActivationRule</key>
+                               <string>SUBQUERY ( fileproviderItems, $fileproviderItem, $fileproviderItem.userInfo.&quot;isUnlockable&quot; == YES ).@count &gt; 0</string>
+                       </dict>
+                       <dict>
+                               <key>NSExtensionFileProviderActionActivationRule</key>
+                               <string>SUBQUERY ( fileproviderItems, $fileproviderItem, $fileproviderItem.userInfo.&quot;isLockable&quot; == YES ).@count &gt; 0</string>
+                               <key>NSExtensionFileProviderActionName</key>
+                               <string>Lock file</string>
+                               <key>NSExtensionFileProviderActionIdentifier</key>
+                               <string>com.nextcloud.desktopclient.FileProviderUIExt.LockFileAction</string>
+                       </dict>
                        <dict>
                                <key>NSExtensionFileProviderActionActivationRule</key>
                                <string>TRUEPREDICATE</string>