Unable to create directory '/run/user/1000/dconf': refuse connection. dconf will not work properly

Troubleshooting technical issues is much easier when both the user and support agent practice clear communication. For this reason, we have provided the template below for you to fill out with information about your issue. Please provide as much detail as possible so we can most efficiently resolve your problem.


Description of the issue:

unable to create directory '/run/user/1000/dconf': refuse connection.  dconf will not work properly.
unable to create directory '/run/user/1000/dconf': refuse connection.  dconf will not work properly.

I have read some solutions but nothing eventually solved the problem.

When it is presented:

  • When clicking links in thunderbird and using brave browser to open them
  • Links do not open in brave browser but do open in firefox

What i did:

sudo chown -R $USER:$USER /run/user/1000/gvfs
  • this stopt the message to appear BUT when according to here and very helpful!!!, running sudo gedit /etc/apparmor.d/abstractions/ubuntu-helpers i added /opt/brave.com/brave{,-beta,-dev,-nightly}/chrome_crashpad_handler Pixr,
  • this happened after upgrade from 20.4 to Debian Bullseye 11.

dont forget to run … and problem solved!!!

sudo service apparmor restart

Brave Version (check About Brave):
Brave Browser 98.1.35.100

Operating System:
Debian GNU/Linux 11 (bullseye)