mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-21 12:35:52 +03:00
[dolphin] Remove the desktop file and go straight to json instead
The desktop to json conversion step will disappear with KF6 Signed-off-by: Kevin Ottens <ervin@kde.org>
This commit is contained in:
parent
6dbe8cc075
commit
c03837ee0d
3 changed files with 14 additions and 8 deletions
|
@ -41,8 +41,7 @@ target_link_libraries(${OWNCLOUDDOLPHINOVERLAYPLUGIN} KF5::CoreAddons KF5::KIOCo
|
|||
|
||||
#---ACTION PLUGIN---
|
||||
set(OWNCLOUDDOLPHINACTIONPLUGIN ${APPLICATION_EXECUTABLE}dolphinactionplugin)
|
||||
configure_file(ownclouddolphinactionplugin.desktop.in ${OWNCLOUDDOLPHINACTIONPLUGIN}.desktop ESCAPE_QUOTES @ONLY)
|
||||
configure_file(ownclouddolphinactionplugin.json.in ${OWNCLOUDDOLPHINACTIONPLUGIN}.json ESCAPE_QUOTES @ONLY)
|
||||
kcoreaddons_add_plugin(${OWNCLOUDDOLPHINACTIONPLUGIN} INSTALL_NAMESPACE "kf5/kfileitemaction"
|
||||
SOURCES ownclouddolphinactionplugin.cpp)
|
||||
target_link_libraries(${OWNCLOUDDOLPHINACTIONPLUGIN} KF5::CoreAddons KF5::KIOCore KF5::KIOWidgets ${OWNCLOUDDOLPHINHELPER})
|
||||
kcoreaddons_desktop_to_json(${OWNCLOUDDOLPHINACTIONPLUGIN} ${CMAKE_CURRENT_BINARY_DIR}/${OWNCLOUDDOLPHINACTIONPLUGIN}.desktop)
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
[Desktop Entry]
|
||||
Type=Service
|
||||
Name=@APPLICATION_NAME@Action
|
||||
ServiceTypes=KFileItemAction/Plugin
|
||||
MimeType=application/octet-stream;inode/directory;
|
||||
X-KDE-Library=@APPLICATION_EXECUTABLE@dolphinactionplugin
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"KPlugin": {
|
||||
"MimeTypes": [
|
||||
"application/octet-stream",
|
||||
"inode/directory"
|
||||
],
|
||||
"Name": "@APPLICATION_NAME@Action",
|
||||
"ServiceTypes": [
|
||||
"KFileItemAction/Plugin"
|
||||
]
|
||||
},
|
||||
"MimeType": "application/octet-stream;inode/directory;"
|
||||
}
|
Loading…
Reference in a new issue