This is how the SDK unlocks the phone:

    powerd = subprocess.Popen(["powerd-cli", "display", 
"on"],stdout=subprocess.DEVNULL,stderr=subprocess.DEVNULL)
    sessionBus   = dbus.SessionBus()
    unityGreeter = sessionBus.get_object('com.canonical.UnityGreeter','/')
    unityGreeterIFace = 
dbus.Interface(unityGreeter,dbus_interface='com.canonical.UnityGreeter')
    unityGreeterIFace.HideGreeter()
    # run app and wait until its closed
   powerd.terminate()

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1435364

Title:
  Lockscreen unresponsive after starting app from QtC or cmdline

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity8/+bug/1435364/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to