Re: [arch-general] systemd --user enable: Failed to connect to bus: No such file or directory

2018-06-27 Thread Ismael Bouya
> systemctl --user status has the same error. How do I start dbus for the
> second user? systemctl enable --user dbus fails due the same error, and
> system's dbus is running.

Good,

Each user + the system has his own dbus. Normally, you should have
dbus.service and dbus.socket units somewhere (/usr/lib/systemd/user
and/or /etc/systemd/user and/or .config/systemd/user)

If it works correctly for one of the users, then probably
/usr/lib/systemd/user and /etc/systemd/user are fine, and there is an
override which breaks the things in .config/systemd/user/dbus.*

Note: If the non-working user is an "old" one, it may be explained by
the fact that those unit files are quite "recent", so probably there is
an history there.

Hope it helps to solve your problem
-- 
Ismael


signature.asc
Description: PGP signature


Re: [arch-general] systemd --user enable: Failed to connect to bus: No such file or directory

2018-06-27 Thread Bjoern Franke
Hi Ismael,

thanks for your both hints.
> 
> The two clues I have according to your error are
> - Is .config/systemd/user created? (Maybe it has to be created manually)

Yes, I've dropped there the timer and service file.

> - Does the second user have dbus started correctly? (for instance, does 
>   "systemctl --user status" work as intended for that user?) Maybe the
>   second user has a non-working dbus service, or maybe it’s just an
>   environment variable problem (if I remember correctly, XDG_RUNTIME_DIR
>   is the variable that should be set correctly to something like
>   /run/user/)
> 

systemctl --user status has the same error. How do I start dbus for the
second user? systemctl enable --user dbus fails due the same error, and
system's dbus is running.

Thanks
Bjoern



signature.asc
Description: OpenPGP digital signature