]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Dolphinpart: Define KPart capabilities instead of deprecated ServiceTypes
authorAlexander Lohnau <alexander.lohnau@gmx.de>
Mon, 16 Sep 2024 19:31:22 +0000 (21:31 +0200)
committerAlexander Lohnau <alexander.lohnau@gmx.de>
Thu, 26 Sep 2024 06:34:43 +0000 (06:34 +0000)
By now, Konqueror uses the new mechanism introduced in
https://invent.kde.org/frameworks/kparts/-/merge_requests/86.
Thus, we can avoid using the deprecated SeviceTypes which are also
removed from the official KPluginMetaData API.

src/dolphinpart.json.in

index d0cf5174ad6429e1aa1e7587fab8bc65eebb4dfe..e47e14e2a0f38923163b4704f4a3bafd023b3a56 100644 (file)
         "Name[x-test]": "xxDolphin Viewxx",
         "Name[zh_CN]": "Dolphin 视图",
         "Name[zh_TW]": "Dolphin 檢視",
-        "ServiceTypes": [
-            "KParts/ReadOnlyPart",
-            "Browser/View"
-        ],
         "Version": "@DOLPHIN_VERSION@"
     },
     "MimeType": "inode/directory;",
     "X-KDE-BrowserView-Built-Into": "konqueror",
     "X-KDE-BrowserView-HideFromMenus": true,
-    "X-Konqueror-Actions-File": "@KDE_INSTALL_FULL_DATADIR@/dolphin/dolphinpartactions.desktop"
+    "X-Konqueror-Actions-File": "@KDE_INSTALL_FULL_DATADIR@/dolphin/dolphinpartactions.desktop",
+    "KParts": {
+        "Capabilities": [
+            "ReadOnly",
+            "BrowserView"
+        ]
+    }
 }