[CentOS] deleted .dbus/sessions-bus/[fn]

Fri Dec 16 21:59:36 UTC 2016
Yamaban <foerster at lisas.de>

On Fri, 16 Dec 2016 22:29, geo.inbox.ignored <geo.inbox.ignored at ...> wrote:

> greetings.
> while using rsync to copy /root/* from tower box to laptop computer, i
> accidentally over wrote .dbus/sessions-bus/[fn] on laptop computer.
> ran extensive web search, including;
>   http://www.freedesktop.org/software/dbus/
> to find how to replace or recreate file, only to find everything about
> what it does and why.
> question is, how do i recreate, short of re-installing from .iso?
> have not rebooted laptop system.
> need help in a BIG way.
> any and all help/suggestions greatly appreciated.
> tia.

AFAICT, the text file in ~/.dbus/sessions-bus/ is named after the
machine-id and contains a few lines similar to:
# This file allows processes on the machine with id  [[your-machine-id-here]]  using
# display :0.0 to find the D-Bus session bus with the below address.
# If the DBUS_SESSION_BUS_ADDRESS environment variable is set, it will
# be used rather than this file.
# See "man dbus-launch" for more details.
DBUS_SESSION_BUS_PID=[[the pid of your personal dbus instance]]
DBUS_SESSION_BUS_WINDOWID=[[your top-most window id]]

as neither this file nor the directories ~/.dbus/sessions-bus/ are in 
/etc/skeleton, I must assume that they are recreated at user-login, if 
they are missing or contain invalid information.

IOW, remove the file, login, and it should get recreated.

  - Yamaban.