Re: [systemd-devel] dbus activation service path

2020-01-28 Thread Damian Ivanov
Hello Simon,

Thanks for the response.
I created https://github.com/bus1/dbus-broker/issues/219

On Mon, Jan 27, 2020 at 10:28 PM Simon McVittie  wrote:
>
> On Fri, 24 Jan 2020 at 23:27:20 +0200, Damian Ivanov wrote:
> > I also have a question about dbus activation.
> > Is there an environment variable or something to tell systemd/dbus-broker 
> > 
> > to look in a specific path for dbus .service files?
>
> The D-Bus Specification[1] says:
>
>  On Unix systems, the session bus should search for .service files in
>  $XDG_DATA_DIRS/dbus-1/services as defined by the XDG Base Directory
>  Specification. Implementations may also search additional locations,
>  with a higher or lower priority than the XDG directories.
>
> so you should set the environment variables XDG_DATA_HOME and/or
> XDG_DATA_DIRS, the same way you set those variables to influence the
> search path for .desktop files. See [2] for more information.
>
> If a piece of software that reads session service definition files does
> not do this, please report that as a bug in that piece of software, using
> its bug tracking system. In particular, if you believe dbus-broker has
> a bug in this area, reporting it in flatpak's bug tracker is unlikely
> to get it seen or fixed by dbus-broker developers.
>
> smcv
>
> [1] https://dbus.freedesktop.org/doc/dbus-specification.html
> [2] 
> https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
> ___
> systemd-devel mailing list
> systemd-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/systemd-devel
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] dbus activation service path

2020-01-27 Thread Simon McVittie
On Fri, 24 Jan 2020 at 23:27:20 +0200, Damian Ivanov wrote:
> I also have a question about dbus activation.
> Is there an environment variable or something to tell systemd/dbus-broker 
> to look in a specific path for dbus .service files?

The D-Bus Specification[1] says:

 On Unix systems, the session bus should search for .service files in
 $XDG_DATA_DIRS/dbus-1/services as defined by the XDG Base Directory
 Specification. Implementations may also search additional locations,
 with a higher or lower priority than the XDG directories.

so you should set the environment variables XDG_DATA_HOME and/or
XDG_DATA_DIRS, the same way you set those variables to influence the
search path for .desktop files. See [2] for more information.

If a piece of software that reads session service definition files does
not do this, please report that as a bug in that piece of software, using
its bug tracking system. In particular, if you believe dbus-broker has
a bug in this area, reporting it in flatpak's bug tracker is unlikely
to get it seen or fixed by dbus-broker developers.

smcv

[1] https://dbus.freedesktop.org/doc/dbus-specification.html
[2] https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] dbus activation service path

2020-01-26 Thread Damian Ivanov
Also not related to my question, but a dbus-broker behavior/bug that
causes flatpak to misbehave:
https://github.com/flatpak/flatpak/issues/3342

On Fri, Jan 24, 2020 at 11:27 PM Damian Ivanov  wrote:
>
> Hello!
>
> Thank you for all the great work!
> Can't wait to test systemd-homed.
>
> I also have a question about dbus activation.
> Is there an environment variable or something to tell systemd/dbus-broker 
> to look in a specific path for dbus .service files?
>
> I have a .desktop file which requires dbus activation but the .service
> can not be in
> any standard path and I want to let the .desktop file know where to
> look for the dbus .service file.
>
> Any suggestions?
>
> br,
> Damian
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] dbus activation service path

2020-01-24 Thread Damian Ivanov
Hello!

Thank you for all the great work!
Can't wait to test systemd-homed.

I also have a question about dbus activation.
Is there an environment variable or something to tell systemd/dbus-broker 
to look in a specific path for dbus .service files?

I have a .desktop file which requires dbus activation but the .service
can not be in
any standard path and I want to let the .desktop file know where to
look for the dbus .service file.

Any suggestions?

br,
Damian
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel