I just upgraded from Ubuntu 20.04 to Ubuntu 21.10 and then to Ubuntu 22.04.
After the upgrade whenever I try to open any pdf document via the terminal using xdg-open
I get the following warning:
(evince:13596): dbind-WARNING **: 15:18:14.588: Couldn't connect to accessibility bus: Failed to connect to socket /run/user/1000/at-spi/bus_0: Permission denied
.
I did not have this problem in Ubuntu 20.04 (I did not check this with Ubuntu 21.10). I find that because of this I do not get the nice list of sections/chapters in the left pane in doc viewer and it also does not keep track of the page number at which I left off a document.
Doing export NO_AT_BRIDGE=1
silences the warning but does not solve the problem.
I would like to be able to use the accessibility features which get disabled due to this error.
Any suggestions for fixing this problem are welcome.
NOTE: I am using Xorg with Ubuntu 22.04. I tried Wayland as well but the problem persists.