Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

When I'm running

evince file.pdf

I got this error

Failed to get bus connection: Could not connect: Connection refused

Ubuntu 12.04

I have to reboot. Can I repair this error without reboot?

share|improve this question
    
Is this on your machine or remote ? Do you start it under tmux ? What happens if you run it with dbus-launch evince ? –  don_crissti Apr 5 '13 at 15:14
    
@don_crissti It's on my machine, yes under tmux. I have to wait until it begins again and tell you the result. –  xralf Apr 5 '13 at 15:46

1 Answer 1

up vote 1 down vote accepted

This message indicates that the D-Bus daemon has died. You need to restart it. Run dbus-launch.

Perhaps the daemon is still running but not responding. If that's the case, kill it, then run dbus-launch.

If the environment variable DBUS_SESSION_BUS_ADDRESS is set, unset it. Most applications (I haven't checked about Evince) can find out the D-Bus address without it.

For more information, see Set environment variable for all of tmux shells when gnome-sessions gets restarted

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.