Polkit: Difference between revisions
Artoria2e5 (talk | contribs) →Writing rules: /etc/polkit-1/rules.d/10-nixos.rules |
m Fix minor typing and consistency errors |
||
| Line 94: | Line 94: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Use this method, you won't need to change the codes even <code>mate.mate-polkit</code> gets an update. | Use this method, you won't need to change the codes even if <code>mate.mate-polkit</code> gets an update. | ||
<syntaxhighlight lang=bash> | <syntaxhighlight lang=bash> | ||
#!/bin/sh | #!/bin/sh | ||
... | ... | ||
/nix/store/$(ls -la /nix/store | grep polkit-kde-agent | grep '^d' | awk '{print $9}')/libexec/polkit-kde-authentication-agent-1 & | /nix/store/$(ls -la /nix/store | grep 'polkit-kde-agent' | grep '^d' | awk '{print $9}')/libexec/polkit-kde-authentication-agent-1 & | ||
... | ... | ||
</syntaxhighlight> | </syntaxhighlight> | ||
The same but for <code>polkit-kde-agent</code> | The same but for <code>polkit-kde-agent</code>. | ||