sector-f-linux

Sector F Linux
git clone https://git.sectorflabs.com/sector-f-linux.git
Log | Files | Refs | README | LICENSE

50-patina-install.rules (778B)


      1 // On the live disc (this file is in the live image only, never the installed system), the installer
      2 // runs as the greeter user, and may run patina-install, which erases a drive and installs. Nothing
      3 // else may, and nobody on an installed system: the policy's default there is an administrator's
      4 // password, and the action does not exist.
      5 polkit.addRule(function(action, subject) {
      6     if (action.id === "com.sectorflabs.patina.install" && subject.user === "greetd") {
      7         return polkit.Result.YES;
      8     }
      9 });
     10 
     11 // And restart the machine when it is done (the installer's Restart button).
     12 polkit.addRule(function(action, subject) {
     13     if (subject.user === "greetd" && action.id.indexOf("org.freedesktop.login1.reboot") === 0) {
     14         return polkit.Result.YES;
     15     }
     16 });