Translations:KDE/40/ru

Revision as of 09:51, 12 November 2024 by Krotesk (talk | contribs) (Created page with "{{File|file=/etc/polkit-1/rules.d/99-disable-suspend.rules|content= <pre> // Отключение приостановки для всех пользователей polkit.ad...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
/etc/polkit-1/rules.d/99-disable-suspend.rules
// Отключение приостановки для всех пользователей
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;
   }
});