Re: [system-tools] system-tools-backends 2.17
- From: Joe Marcus Clarke <marcus FreeBSD org>
- To: Carlos Garnacho <carlosg gnome org>
- Cc: system-tools-list gnome org
- Subject: Re: [system-tools] system-tools-backends 2.17
- Date: Thu, 09 Nov 2006 13:55:59 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Carlos Garnacho wrote:
> On Thu, 2006-11-09 at 12:21 -0500, Joe Marcus Clarke wrote:
> Carlos Garnacho wrote:
>>>> On Wed, 2006-11-08 at 17:38 -0500, Joe Marcus Clarke wrote:
>>>>> I'm having a pretty difficult time getting the latest
>>>>> system-tools-backends to like FreeBSD. I was hoping I could get a few
>>>>> questions answered.
>>>>> 1. s-t-b tries to find its D-BUS service using the system bus. However,
>>>>> the system bus has no concept of service directories, so this causes
>>>>> Nautilus to fail to launch since the org.freedesktop.SystemToolsBackends
>>>>> service cannot be found. If I add the following to D-BUS's system.conf,
>>>>> I can get over this hurdle:
>>>> Ideally, the backends have to be run as root (they need it to change
>>>> system configuration) by a script in /etc/dbus-1/event.d, the service
>>>> file is mostly a fallback to make tools at least show something instead
>>>> of failing miserably :)
>>>> Sadly, due to the diversity of init script types out there, I'm not
>>>> including any at the moment, so packages should provide their own.
> Oh, cool. This is the first I've heard of event.d scripts. Do you have
> an example for s-t-b I could look at?
>> Hmmm, after reading the DBus initscript, I now realize that it's a
>> distros' artifact to raise or stop services in the system bus (HAL,
>> NetworkManager, s-t-b, ...). It's the DBus initscript the one that goes
>> to that directory and launches the scripts in there...
>> At least, all Linux distributions that ship DBus have it, and IIRC some
>> apps already rely on /etc/dbus-1/event.d/ usage, but running s-t-b
>> during init as root should be just ok.
>> I'm attaching both Ubuntu's DBus initscript and s-t-b event.d file, hope
>> it's a good example :)
This is perfect. I have added a FreeBSD rc.d script to our port, and
Nautilus is now coming up as before. Thanks!
Joe Marcus Clarke
FreeBSD GNOME Team :: gnome FreeBSD org
FreeNode / #freebsd-gnome
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
][Date Next] [Thread Prev