contextview broken without plasma
Maximilian Kossick
maximilian.kossick at googlemail.com
Fri Feb 29 09:29:02 CET 2008
On Fri, Feb 29, 2008 at 9:19 AM, Mark Kretschmann <kretschmann at kde.org> wrote:
> On 2/7/08, Harald Sitter <sitter.harald at gmail.com> wrote:
> > When plasma isn't installed amarok2 throws out nice errors like:
> > > amarok(16344)/kdecore (trader) KServiceTypeTrader::defaultOffers: KServiceTypeTrader: serviceType "Plasma/Applet" not found
> > > amarok(16344) Plasma::Applet::loadApplet: Applet::loadApplet: offers is empty for " "context" "
> > > amarok(16344) Plasma::Corona::addContainment: loading of containment "context" failed.
> > > findServiceByDesktopPath: not found
> >
> > This is because the following files aren't installed:
> > plasma-animator.desktop
> > plasma-applet.desktop
> > plasma-dataengine.desktop
> > (plasma-runner.desktop)
> > (plasma-scriptengine.desktop)
> >
> > I have kinda no idea how to properly fix this... but some wicked
> > minded solution paths:
> >
> > 1. somehow get amarok's libplasma to search in the amarok
> > datadir/servicetypes for these files (probably best solution)
> > 2. suffix -amarok to the desktop files and install them in the default
> > KDE 4 path, I'm not exactly sure this will not cause plasma to use our
> > files though
>
> Hm, I don't really understand why these files are not installed.
> CMakeLists.txt has this:
>
> install(FILES
> servicetypes/plasma-animator.desktop
> servicetypes/plasma-applet.desktop
> servicetypes/plasma-dataengine.desktop
> servicetypes/plasma-runner.desktop
> servicetypes/plasma-scriptengine.desktop
> DESTINATION ${SERVICETYPES_INSTALL_DIR})
>
> --
> Mark
They are not installed because you are looking in the wrong CMakeLists.txt
src/context/CmakeLists.txt contains this:
# base plasma not compiled under windows, so we need to install these here
if(WIN32)
install(FILES
plasma/servicetypes/plasma-animator.desktop
plasma/servicetypes/plasma-applet.desktop
plasma/servicetypes/plasma-dataengine.desktop
plasma/servicetypes/plasma-runner.desktop
plasma/servicetypes/plasma-scriptengine.desktop
DESTINATION ${SERVICETYPES_INSTALL_DIR})
endif(WIN32)
The CMakeLists.txt file in src/context/plasma is not used when building Amarok.
Max
More information about the Amarok-devel
mailing list