Translations:KDE/40/en

Revision as of 08:05, 12 November 2024 by FuzzyBot (talk | contribs) (Importing a new version from external source)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
/etc/polkit-1/rules.d/99-disable-suspend.rules
// Disable suspend for all users
polkit.addRule(function(action, subject) {
   if ((action.id == "org.freedesktop.login1.suspend")) {
      return polkit.Result.NO;
   }
});
polkit.addRule(function(action, subject) {
   if ((action.id == "org.freedesktop.login1.suspend-multiple-sessions")) {
      return polkit.Result.NO;
   }
});