[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: How to start a KDE service
From: Kevin Krammer <kevin.krammer () gmx ! at>
Date: 2008-06-10 12:05:03
Message-ID: 200806101405.03481.kevin.krammer () gmx ! at
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Monday 09 June 2008, David Boosalis wrote:
> Thanks for the feedback Kevin.
> My follow up question is about services as defined in
> kde/share/dbus/services. Would you or anyone know how we start them.
I don't have such a directory, where did you get it from?
If you want to add an additional directory to the search path for D-Bus
activation, you can extend the XDG_DATA_DIRS variable accordingly, the
default (if unset or empty) being /usr/local/share:/usr/share
This variable needs to be set to whatever value you want before the D-Bus
session bus/daemon gets started, so the correct value is part of its
environment as well.
Cheers,
Kevin
>
> On Mon, Jun 9, 2008 at 11:03 AM, Kevin Krammer <kevin.krammer@gmx.at> wrote:
> > On Monday 09 June 2008, David Boosalis wrote:
> > > How do I start a service from another application. Say I am using
> > > something like the example in qt/examples/dbus/remotecontrol where
> > > there
> >
> > is
> >
> > > a car and a control application. I want the control to start the car
> > > application if it is not already running, and if running make sure the
> >
> > car
> >
> > > application is not iconified. I created a service for the car, this
> > > service file gets installed to $HOME/kde/share/dbus/services
> >
> > For D-Bus activation you need to place the .service file into a directory
> > known to D-Bus.
> > Since D-Bus is not a KDE application, it doesn't seach KDE's directories.
> >
> > For a user local directory, have a look at $HOME/.local/share as a local
> > option for anything under /usr/share or /usr/local/share
> >
> > (actually $XDG_DATA_HOME/ but $HOME/.local/share is the default)
> >
> > Cheers,
> > Kevin
> >
> > --
> > Kevin Krammer, KDE developer, xdg-utils developer
> > KDE user support, developer mentoring
> >
> > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> >
> > unsubscribe <<
--
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
["signature.asc" (application/pgp-signature)]
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic