Package dbus :: Module _dbus :: Class SessionBus
[hide private]
[frames] | no frames]

Class SessionBus

source code

               object --+                
                        |                
_dbus_bindings.Connection --+            
                            |            
        connection.Connection --+        
                                |        
                bus.BusConnection --+    
                                    |    
                                  Bus --+
                                        |
                                       SessionBus

The session (current login) message bus.
Nested Classes [hide private]

Inherited from connection.Connection: ProxyObjectClass

Instance Methods [hide private]

Inherited from Bus: __repr__, __str__, close, get_connection

Inherited from bus.BusConnection: activate_name_owner, add_match_string, add_match_string_non_blocking, add_signal_receiver, get_name_owner, get_object, get_unix_user, list_activatable_names, list_names, name_has_owner, release_name, remove_match_string, remove_match_string_non_blocking, request_name, start_service_by_name, watch_name_owner

Inherited from bus.BusConnection (private): _clean_up_signal_match

Inherited from connection.Connection: __init__, call_async, call_blocking, call_on_disconnection, remove_signal_receiver

Inherited from _dbus_bindings.Connection: add_message_filter, flush, get_is_authenticated, get_is_connected, get_peer_unix_process_id, get_peer_unix_user, get_unique_name, get_unix_fd, list_exported_child_objects, remove_message_filter, send_message, send_message_with_reply, send_message_with_reply_and_block, set_exit_on_disconnect, set_unique_name

Inherited from _dbus_bindings.Connection (private): _new_for_bus, _register_object_path, _require_main_loop, _unregister_object_path

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods [hide private]
a new object with type S, a subtype of T
__new__(cls, private=False, mainloop=None)
Return a connection to the session bus.
source code

Inherited from Bus: get_session, get_starter, get_system

Class Variables [hide private]

Inherited from Bus (private): _shared_instances

Inherited from bus.BusConnection: START_REPLY_ALREADY_RUNNING, START_REPLY_SUCCESS, TYPE_SESSION, TYPE_STARTER, TYPE_SYSTEM

Instance Variables [hide private]
Properties [hide private]

Inherited from Bus (private): _connection

Inherited from object: __class__

Method Details [hide private]

__new__(cls, private=False, mainloop=None)
Static Method

source code 
Return a connection to the session bus.
Parameters:
  • private (bool) - If true, never return an existing shared instance, but instead return a private connection.
  • mainloop (dbus.mainloop.NativeMainLoop) - The main loop to use. The default is to use the default main loop if one has been set up, or raise an exception if none has been.
Returns: a new object with type S, a subtype of T
Overrides: object.__new__