class DBus::ASystemBus
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.
Public Class Methods
Source
# File lib/dbus/bus.rb, line 272 def initialize super(self.class.system_bus_address) end
Get the default system bus.
Calls superclass method
DBus::BusConnection::new
Source
# File lib/dbus/bus.rb, line 276 def self.system_bus_address ENV["DBUS_SYSTEM_BUS_ADDRESS"] || SYSTEM_BUS_ADDRESS end