Sha256: fb9aea92afd06e3b3d79462103b5d8dd68f1b80c60e64ad73f6c14d73d34a238
Contents?: true
Size: 401 Bytes
Versions: 6
Compression:
Stored size: 401 Bytes
Contents
#! /usr/bin/env ruby # find the library without external help $LOAD_PATH.unshift File.expand_path("../../../lib", __FILE__) require "dbus" bus = DBus::SystemBus.instance driver_svc = bus["org.freedesktop.DBus"] # p driver_svc driver_obj = driver_svc["/"] # p driver_obj driver_ifc = driver_obj["org.freedesktop.DBus"] # p driver_ifc bus_id = driver_ifc.GetId puts "The system bus id is #{bus_id}"
Version data entries
6 entries across 6 versions & 1 rubygems