Class: DBus::SessionBus

Inherits:
Connection show all
Includes:
Singleton
Defined in:
lib/dbus/bus.rb

Overview

D-Bus session bus class

The session bus is a session specific bus (mostly for desktop use). This is a singleton class.

Constant Summary

Constants inherited from Connection

Connection::DBUSXMLINTRO, Connection::MSG_BUF_SIZE, Connection::NAME_FLAG_ALLOW_REPLACEMENT, Connection::NAME_FLAG_DO_NOT_QUEUE, Connection::NAME_FLAG_REPLACE_EXISTING, Connection::REQUEST_NAME_REPLY_ALREADY_OWNER, Connection::REQUEST_NAME_REPLY_EXISTS, Connection::REQUEST_NAME_REPLY_IN_QUEUE, Connection::REQUEST_NAME_REPLY_PRIMARY_OWNER

Instance Attribute Summary

Attributes inherited from Connection

#socket, #unique_name

Instance Method Summary collapse

Methods inherited from Connection

#add_match, #connect, #connect_to_tcp, #connect_to_unix, #emit, #glibize, #introspect, #introspect_data, #messages, #on_return, #parse_session_string, #poll_messages, #pop_message, #process, #proxy, #request_service, #send, #send_sync, #service, #update_buffer, #wait_for_message

Constructor Details

#initialize(socket_name = SessionSocketName) ⇒ SessionBus

Get the the default session bus.



664
665
666
667
668
# File 'lib/dbus/bus.rb', line 664

def initialize socket_name=SessionSocketName
  super(socket_name)
  connect
  send_hello
end