[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Plasma 5 dataengine
From:       Martin Graesslin <mgraesslin () kde ! org>
Date:       2016-10-19 5:48:17
Message-ID: 2291137.RGgGIFpvsR () martin-desktop
[Download RAW message or body]


On Tuesday, October 18, 2016 10:21:21 PM CEST Michal Kimle wrote:
> Hi Martin,
> 
> thank you for your response.
> 
> Yes, I already tried this approach but with no luck. plasmaengineexplorer
> command won't find my dataengine :( I'll make the code available on Github
> later this week so we can discuss it better.
> 
> On the other note. Your example prepares Makefile to install the dataengine
> system-wide. This is usually what you want but I was wondering if there is
> a way to "install" a dataengine locally in a similar way applets can be
> installed in you home directory so that system will still recognize it.

As dataengines are binary plugins it's normally not the best idea to install 
non-system wide. You can do it, but it requires to change the environment 
variables such as LD_LIBRARY_PATH, QT_PLUGIN_PATH, etc. etc.

From a system integrity point of view loading anything from $HOME is a 
problem.

Cheers
Martin

> 
> On Tue, Oct 18, 2016 at 9:17 AM, Martin Graesslin <mgraesslin@kde.org>
> 
> wrote:
> > On Tuesday, October 18, 2016 9:03:28 AM CEST Michal Kimle wrote:
> > > Hi everyone,
> > > 
> > > I'm developing a news feeds dataengine that would substitute an old
> > 
> > Plasma
> > 
> > > 4 RSS dataengine. I managed to write a code and compile it by looking at
> > > other dataengines currently available in Plasma 5.
> > 
> > cool stuff! You might reach more Plasma devs on plasma-devel@kde.org.
> > 
> > > I would like to test this newly built dataengine but I can't make KDE to
> > > recognize it. I tried to follow this tutorial
> > > https://techbase.kde.org/Development/Tutorials/Plasma4/
> > 
> > DataEngines#Testing
> > 
> > > but it's only for Plasma 4.
> > > 
> > > Can somebody please tell me where should I put those .so and .desktop
> > 
> > files
> > 
> > > so that KDE will recognize it and dataengine will be available via
> > > plasmaengineexplorer command? Is there somewhere a
> > > documentation/tutorial
> > > for Plasma 5 dataengines?
> > 
> > I'm not aware of a dataengine. But we can look at the source :-) I'm
> > taking a
> > dataengine I wrote (plasma-workspace/klipper):
> > 
> > install(TARGETS plasma_engine_clipboard DESTINATION
> > ${KDE_INSTALL_PLUGINDIR}/
> > plasma/dataengine)
> > install(FILES plasma-dataengine-clipboard.desktop DESTINATION $
> > {KDE_INSTALL_KSERVICES5DIR})
> > install(FILES org.kde.plasma.clipboard.operations DESTINATION $
> > {PLASMA_DATA_INSTALL_DIR}/services)
> > 
> > Hope that helps you to get some steps further :-)
> > 
> > Cheers
> > Martin


["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic