Comment 21 for bug 1462489

Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

We have a patch for QScreenSaver. The way it will work is that apps can use this from QML:

import QtSystemInfo 5.0
ScreenSaver { screenSaverEnabled: false }

or its pendant from C++. Unity-System-Compositor will watch the
application. As soon as the application is closed, the request will be
dropped and the screensaver will be enabled again, even if the app
didn't explicitly release the resource before quitting.

We need apparmor to allow apps to call the methods:
* keepDisplayOn
* removeDisplayOnRequest
on interface:
com.canonical.Unity.Screen
and path:
/com/canonical/Unity/Screen
on the *system* bus.