Mini Shell

Direktori : /lib64/python3.6/site-packages/pyanaconda/__pycache__/
Upload File :
Current File : //lib64/python3.6/site-packages/pyanaconda/__pycache__/screensaver.cpython-36.pyc

3

@��e
�@s\ddlmZddlmZddlmZee�ZdZdZ	dZ
dZdZdZ
d	Zd
d�Zdd
�ZdS)�)�	safe_dbus)�Variant)�get_module_loggerzorg.freedesktop.ScreenSaverz/org/freedesktop/ScreenSaverZInhibitZ	UnInhibitZanacondaZ
InstallingcCs\y&tjtttttdttf�|�}|dStj	k
rV}zt
jd|�WYdd}~XnXdS)z�
    Inhibit the screensaver idle timer.

    :param connection: A handle for the session message bus
    :type connection: Gio.DBusConnection
    :return: The inhibit ID or None
    :rtype: int or None
    z(ss)rz%Unable to inhibit the screensaver: %sN)r�	call_sync�SCREENSAVER_SERVICE�SCREENSAVER_PATH�SCREENSAVER_IFACE�SCREENSAVER_INHIBIT_METHODr�SCREENSAVER_APPLICATION�SCREENSAVER_REASON�
DBusCallError�log�info)�
connection�
inhibit_id�e�r�#/usr/lib64/python3.6/screensaver.py�inhibit_screensaver$s

rcCsVy tjtttttd|f�|�Wn0tjk
rP}ztj	d|�WYdd}~XnXdS)z�
    Re-enable the screensaver idle timer.

    :param connection: A handle for the session message bus
    :type connection: Gio.DBusConnection
    :param inhibit_id: The ID returned by the inhibit method
    :type inhibit_id: int
    z(u)z'Unable to uninhibit the screensaver: %sN)
rrrrr�SCREENSAVER_UNINHIBIT_METHODrrr
r)rrrrrr�uninhibit_screensaver:s


rN)Z
pyanacondarZpyanaconda.core.glibrZpyanaconda.anaconda_loggersr�__name__r
rrrr	rr
rrrrrrr�<module>s