All pastes #390301 Raw Edit

Stuff

public text v1 · immutable
·published 2007-03-11 10:37 UTC
rendered paste body
# Copyright 2007 Alp Toker <alp@atoker.com>
# This software is made available under the MIT License
# See COPYING for details

import clr
clr.AddReferenceToFile("NDesk.DBus.dll")
from NDesk.DBus import *
from org.freedesktop.DBus import *

conn = Bus.Session

bus = conn.GetObject("org.freedesktop.DBus", ObjectPath("/"))

for i in range(5):
  for name in bus.ListNames(): print name