summaryrefslogtreecommitdiff
path: root/pcr/desktop-privileges/10-upower.rules
blob: af91947efd4cadd1b96ad7021d7e97b61b09df92 (plain)
1
2
3
4
5
6
polkit.addRule(function(action, subject) {
    if (action.id == "org.freedesktop.upower.hibernate" ||
        action.id == "org.freedesktop.upower.suspend") {
        return polkit.Result.YES;
    }
});