Sunday 18 June 2017

Competing polkit authentication agents

I'm running OpenSUSE Leap 42.2 on my desktop and both my notebooks. After the last system update, one of the notebooks started to show the following Error dialog after logging into LXDE:

GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: An authentication agent already exists for the given subject

Googling for the message didn't help much, so I had to start experimenting myself. Comparing the output of ps -eo euser,pid,cmd | grep [p]olkit on different devices showed the notebook had one more line there:

polkitd 1657 /usr/lib/polkit-1/polkitd --no-debug
choroba 2283 lxpolkit
choroba 2308 /usr/lib/polkit-gnome-authentication-agent-1

The extra line was the last one.

I had no idea who started the gnome agent, and I wasn't able to find out quicky: pstree shows systemd as its parent.

Nevertheless, I was able to prevent it from running. In the file /etc/xdg/autostart/polkit-gnome-authentication-agent-1.desktop, I changed the line

NotShownIn=KDE;

to

NotShownIn=KDE;LXDE;

The error is gone.

1 comment:

  1. First of all, I am sorry to post here because it's nothing related to your post. I just wanted to let you know the result of your kind reply at https://stackoverflow.com/questions/78554507/perl-sqlite3-using-with-clause-with-recursive-cause-error-prepare-failed-nea?noredirect=1#comment138555306_78554507

    it was ipfire, so I had to rebuild ipfire by https://www.ipfire.org/docs/devel/ipfire-2-x/addon-howto and I could update DBD-SQLITE to 3.4x and use recursive query with clause. Thanks to your reply, I could find the problem soon. Have a nice day.

    ReplyDelete