You are not logged in.

#1 2013-03-10 16:55:04

ego.abyssi
Member
Registered: 2011-07-27
Posts: 45

D-Bus Session Bus Weirdness

I've been trying to experiment with systemd user sessions, per https://wiki.archlinux.org/index.php/Systemd/User.  Right now, running systemd 197-4.  Well, I copied /usr/lib/system/system/user@service to /etc/systemd/system/user@service, edited the DBUS_SESSION_BUS_ADDRESS bit from %I to %U per the page--though I can't see why that's necessary--made the changes to the PAM configs, and installed it as /etc/system/system/getty.target.wants/user@username.service.

It seemed to start after reboot, though systemctl --user would error out about DISPLAY 0 and/or unable to find the session bus socket.

So, I started snooping.

[Unit]
Description=User Manager for %I
After=systemd-user-sessions.service

[Service]
User=%I
PAMName=systemd-shared
ControlGroup=%R/user/%I/shared cpu:/
ControlGroupModify=yes
Type=notify
ExecStart=-/usr/lib/systemd/systemd --user
Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/%U/dbus/user_bus_socket

No dbus directory under /run/user/1000, however.

In fact exporting DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/dbus/user_bus_socket or DBUS_SESSION_BUS_ADDRESS=/run/user/1000/dbus/user_bus_socket and then running dbus-daemon or dbus-launch with appropriate session options does not work:

> DBUS_SESSION_BUS_ADDRESS='unix:path=/run/user/1000/dbus/user_bus_socket' dbus-launch
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-VvTxHIG9gv,guid=be4f17454d544b75796c2efd513cb391
DBUS_SESSION_BUS_PID=505

Why is the DBUS_SESSION_BUS_ADDRESS variable simply ignored?  I'm sure there is a valid explanation, but it seems mystical to me at the moment.

Even still, nothing under /tmp after running that command.  Also, I cannot find any documentation on what DBUS_SESSION_BUS_ADDRESS accepts as a valid path.  What are these unix:path and unix:abstract bits?

Appreciate any pointers.  Thanks.


Fortune sides with him who dares -Virgil

Offline

#2 2013-03-21 01:17:55

ego.abyssi
Member
Registered: 2011-07-27
Posts: 45

Re: D-Bus Session Bus Weirdness

I really hate to just *bump* this, but I still can't seem to find squat on this.

Anyone have any idea why the environment variables seem to go unused?


Fortune sides with him who dares -Virgil

Offline

Board footer

Powered by FluxBB