Class: DBus::ASystemBus

Inherits:
BusConnection show all
Defined in:
lib/dbus/bus.rb

Overview

D-Bus system bus class

The system bus is a system-wide bus mostly used for global or system usages.

Use SystemBus, the non-singleton ASystemBus is for the test suite.

Direct Known Subclasses

SystemBus

Constant Summary

Constants inherited from BusConnection

BusConnection::RELEASE_NAME_REPLY_NON_EXISTENT, BusConnection::RELEASE_NAME_REPLY_NOT_OWNER, BusConnection::RELEASE_NAME_REPLY_RELEASED

Constants inherited from Connection

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 BusConnection

#unique_name

Attributes inherited from Connection

#message_queue

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BusConnection

#add_match, #on_name_acquired, #on_name_lost, #proxy, #release_name, #remove_match, #request_name, #service

Methods inherited from Connection

#add_match, #dispatch_message_queue, #emit, #glibize, #handle_return_of_request_name, #introspect, #introspect_data, #object_server, #on_return, #process, #remove_match, #request_service, #send_sync, #send_sync_or_async, #wait_for_message

Constructor Details

#initializeASystemBus

Get the default system bus.



272
273
274
# File 'lib/dbus/bus.rb', line 272

def initialize
  super(self.class.system_bus_address)
end

Class Method Details

.system_bus_addressObject



276
277
278
# File 'lib/dbus/bus.rb', line 276

def self.system_bus_address
  ENV["DBUS_SYSTEM_BUS_ADDRESS"] || SYSTEM_BUS_ADDRESS
end