Sha256: 547b78cf88c98698a84cdd4c75dc564fad8aecb543bca197ab497522cb280c26
Contents?: true
Size: 517 Bytes
Versions: 8
Compression:
Stored size: 517 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" busname = ARGV.fetch(0, "system") bus = busname == "session" ? DBus::SessionBus.instance : 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 #{busname} bus id is #{bus_id}"
Version data entries
8 entries across 8 versions & 1 rubygems