Polkit: Difference between revisions

imported>Tkuwill
m I wrote the code by myself.
imported>Tkuwill
m I wrote the code by myself. Reference: sed manual.
Line 41: Line 41:
# General stuff
# General stuff
...
...
/nix/store/$(ls -la /nix/store | grep 'mate-polkit-1.26.0' | grep '4096' | awk '{print $9}')/libexec/polkit-mate-authentication-agent-1 &  
/nix/store/$(ls -la /nix/store | grep 'mate-polkit' | grep '4096' | awk '{print $9}' | sed -n '$p')/libexec/polkit-mate-authentication-agent-1 &  
...
...


</syntaxhighlight>
</syntaxhighlight>


Remember to change <code>grep 'mate-polkit-1.26.0'</code> to a newer version when <code>mate.mate-polkit</code> gets an update.
Use this method, you won't need to change the codes even <code>mate.mate-polkit</code> gets an update.