import dbus bus = dbus.SessionBus() time = bus.get_object("org.ArcticaProject.RWA", "/RWA") curr = time.start() print("Your VNC session is", curr)