Commit 04a77653 authored by David Faure's avatar David Faure
Browse files

Install the gwenview part into kf5/parts, embed JSON metadata

Summary: lxr says nobody is loading "gvpart" by name.

Test Plan: kparts/bin/partviewer /tmp/myfile.jpg still works, after removing the old gvpart.so

Reviewers: #gwenview, kossebau, ngraham

Reviewed By: #gwenview, ngraham

Subscribers: ngraham

Tags: #gwenview

Maniphest Tasks: T12340

Differential Revision: https://phabricator.kde.org/D26349
parent adfc8ac0
......@@ -15,7 +15,8 @@ add_library(gvpart MODULE ${gvpart_SRCS})
target_link_libraries(gvpart KF5::Parts gwenviewlib)
configure_file(gvpart.desktop.cmake ${CMAKE_CURRENT_BINARY_DIR}/gvpart.desktop)
kcoreaddons_desktop_to_json(gvpart ${CMAKE_CURRENT_BINARY_DIR}/gvpart.desktop)
install(TARGETS gvpart DESTINATION ${KDE_INSTALL_PLUGINDIR})
install(TARGETS gvpart DESTINATION ${KDE_INSTALL_PLUGINDIR}/kf5/parts)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/gvpart.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
install(FILES gvpart.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/gvpart)
......@@ -49,7 +49,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include "gvpart.h"
//Factory Code
K_PLUGIN_FACTORY(GVPartFactory, registerPlugin<Gwenview::GVPart>();)
K_PLUGIN_FACTORY_WITH_JSON(GVPartFactory, "gvpart.json", registerPlugin<Gwenview::GVPart>();)
namespace Gwenview
{
......
......@@ -67,6 +67,6 @@ Name[zh_CN]=Gwenview 图像查看器
Name[zh_TW]=Gwenview 影像檢視程式
MimeType=${IMAGE_MIME_TYPES};
X-KDE-ServiceTypes=KParts/ReadOnlyPart
X-KDE-Library=gvpart
X-KDE-Library=kf5/parts/gvpart
InitialPreference=12
Icon=gwenview
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment