Sha256: 9fe33bdbf35a7a0ecd4f4c202c788171bab653f9f1b2998e53d0215dc2ca4bbd
Contents?: true
Size: 427 Bytes
Versions: 10
Compression:
Stored size: 427 Bytes
Contents
#! /usr/bin/env ruby # frozen_string_literal: true # find the library without external help $LOAD_PATH.unshift File.expand_path("../../lib", __dir__) 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
10 entries across 10 versions & 1 rubygems