Fixing Raspbian LXDE GDBUS Error

With the recent release of the Raspberry Pi 2, little bugs have crawled out of the woodwork. One annoying, but very minor bug, is when you log into LXDE, the windows manager for Raspbian. After entering startx to start the windows manager, your Raspberry Pi opens up LXDE and you get this:

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

You can click 'Ok' and the window goes away, but then you're left with that uneasy feeling of "why did it show up" and "is it really an issue".

Well... yes, there is some sort of problem because an error window showed up - see list of times same error showed up at the bottom of the page. In fact that page explains how to fix this exact error. But the fix doesn't work for Raspian.

To fix the problem on Raspian in LXDE, you need to take a couple of extra steps.

  1. Dismiss the error window by clicking 'Ok'. You can continue to do that each time you log into LXDE. But let's face it, you're not the type of person to be running Raspbian Linux and accept some random error message.
  2. Open a terminal window and enter the following command lxsession-edit Don't run it as sudo.
  3. This will open up another dialog window. Uncheck the box shown below:
  4. Click 'Ok'.

At this point you can continue working in LXDE or reboot Raspberry Pi. The next time you log in you won't see the error dialog box.