Skip to content

main/polkit: Create home directory for polkit

Olliver Schinagl requested to merge polkit into master

Some polkit users need the polkit home directory to exist, to avoid errors such as:

dbus-daemon[147]: [system] Activating service name='org.freedesktop.PolicyKit1' requested by ':1.0' (uid=0 pid=175 comm="ModemManager ") (using servicehelper)
dbus-daemon[147]: [system] Activated service 'org.freedesktop.PolicyKit1' failed: Launch helper exited with unknown return code 1
  failed to create PolicyKit authority: 'Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Launch helper exited with unknown return code 1'
NetworkManager[154]: <warn>  [946684845.8418] modem-broadband[ttyACM1]: failed to enable modem: GDBus.Error:org.freedesktop.ModemManager1.Error.Core.Failed: PolicyKit authorization error: 'authority not found'

While here, do some boy scouting by quoting all strings and alphabetically sorting arguments since we are already touching this line.

Signed-off-by: Olliver Schinagl oliver@schinagl.nl

Merge request reports

Loading