logo       

Sponsor
FREE Network Mapping Tool for Microsoft® Office Visio® Professional 2007
Don't map your network by hand - let LANsurveyor Exx press for Microsoft Visio Professional 2007 automatically create network diagrams for you!

Re: System and Session Bus: msg#00160

freedesktop.dbus

Subject: Re: System and Session Bus

On Mon, 2006-03-20 at 09:20 +0100, Oliver Frommel wrote:
> >
> > - What is the point in having a separate session bus when
> > > a system bus is already running?
> >
> >
> > The system bus is there to provide coordination between system-wide services
> > that are independent
> > of individual users and their apps running, while the session bus is there
> > for "desktop communication" primarily,
> > that is, to provide coordination and communication between apps that an
> > individual user would run (as opposed
> > to apps/services that the "system would run").
> >
>
> Ok, thank you so far.
> Can you provide any more actual use cases / examples for
> both busses? For instance if I want to make use of HAL
> I have to connect to the system bus, right?
> In order to have my application communicate with other
> programs running in my desktop session I would connect to
> my session bus. In practice that would mean most applications
> would need to connect to both busses.
>
> When I list the interface names of both busses on FC5 I get:
> (system:)
> [u'org.freedesktop.DBus', u':1.7', u':1.8',
> u'org.freedesktop.NetworkManagerInfo', u'org.freedesktop.Avahi',
> u':1.10', u'com.redhat.CupsDriverConfig', u':1.1',u':1.2',
> u'org.freedesktop.Hal', u':1.3', u':1.4', u':1.5',
> u'com.redhat.PrintDriverSelection', u':1.6']
>
> (session:)
> [u'org.freedesktop.DBus', u':1.3', u':1.0', u':1.1',
> u'com.redhat.PrinterManager']
>
> So what is the purpose and difference of the printer services
> that are available on the respective busses.

The printing services are all a first pass implementing some of my ideas
about giving limited privileges to non-root users for things like
configuring hardware. It is being revamped currently but the idea is
the same. You have a service running as root that listens on the system
bus for configuration change requests (com.redhat.CupsDriverConfig).
You have a service running as the current console user that listens for
requests for input on the system bus (com.redhat.PrintDriverSelection).

com.redhat.PrinterManager is a bit different. It seems to be used to
pop up a password dialog most likely for authenticating to a secure
printer. Colin wrote that and I am not sure who uses the service.






Only community members can participate in forum threads. You must Register or log in to contribute.

<Prev in Thread] Current Thread [Next in Thread>
Sponsor
FREE Network Mapping Tool for Microsoft® OfficeVisio Professional 2007
Don't map your network by hand - let LANsurveyor Express for Microsoft Visio Professional 2007
automatically create network diagrams for you!
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | sitemap | advertise | OSDir is an inevitable website. super tiny logo