Not using display manager and executing startup logic via xinitrc. Problem is some dbus-related env variables are not set.
xinitrc excerpt:
dbus-update-activation-environment --systemd --all # note this errors
/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 &
eval $(/usr/bin/gnome-keyring-daemon --start --components=gpg,pkcs11,secrets,ssh)
export GNOME_KEYRING_CONTROL GNOME_KEYRING_PID GPG_AGENT_INFO SSH_AUTH_SOCK DBUS_SESSION_BUS_ADDRESS DBUS_SESSION_BUS_PID
First one returns error
dbus-update-activation-environment: warning: error sending to systemd: org.freedesktop.DBus.Error.InvalidArgs: Invalid environment assignments
How to make sure dbus vars (eg DBUS_SESSION_BUS_ADDRESS
) are set?
Note alternatively I could comment out these lines from /usr/bin/startx
:
unset DBUS_SESSION_BUS_ADDRESS
unset SESSION_MANAGER
but not sure that's the way to go.
Running debian testing.
xinit
directly on fedora without problems, so you are probably right that you need to stopstartx
from removing the dbus variable from the environment.