Skip to content

I don't want to enter my password everytime

lawl edited this page Aug 30, 2020 · 2 revisions

Ideally this will be changed in the future. For now, you can create a polkit configuration to automatically allow NoiseTorch to elevate without having to enter your password.

Create a file /usr/share/polkit-1/actions/org.noisetorch.pulselimit.policy with the following content and remember to substitute your username in:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
 "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
 "http://www.freedesktop.org/software/polkit/policyconfig-1.dtd">
<policyconfig>

  <action id="org.noisetorch.pulselimit.policy">
    <message>Authentication is required to load NoiseTorch</message>
    <icon_name>audio-input-microphone</icon_name>
    <defaults>
      <allow_any>yes</allow_any>
      <allow_inactive>yes</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
    <annotate key="org.freedesktop.policykit.exec.path">/home/REPLACEMEWITHUSERNAME/.local/bin/noisetorch</annotate>
  </action>

</policyconfig>

For more information see this pull request.

Clone this wiki locally