Difference between revisions of "Talk:Systemd/User"

From ArchWiki
Jump to: navigation, search
(ambiguous use of --user switch)
 
(Remove closed discussion.)
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
==user: command or username==
+
== Setting Environment variables without autologin/user-session@.service ==
  
Maybe a dumm question, but is the {{ic|--user}} command supposed to be used as is in the whole article or is it that we should replace it with our username in some places?
+
If you're not using auto-login, specifically the user-session@service, the environment variable DBUS_SESSION_BUS_ADDRESS needs to exported to something like {{ic|export DBUS_SESSION_BUS_ADDRESS=/run/user/$(id -u)/dbus/user_bus_socket}} before {{ic|systemd --user}}.  Otherwise, an error shows up in journalctl : "systemd[3975]: Failed to open private bus connection: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11."  Are there any other environment variables that need to be added to that section?
 +
[[User:Feynman|Feynman]] ([[User talk:Feynman|talk]]) 23:57, 5 February 2013 (UTC)

Revision as of 05:58, 6 February 2013

Setting Environment variables without autologin/user-session@.service

If you're not using auto-login, specifically the user-session@service, the environment variable DBUS_SESSION_BUS_ADDRESS needs to exported to something like export DBUS_SESSION_BUS_ADDRESS=/run/user/$(id -u)/dbus/user_bus_socket before systemd --user. Otherwise, an error shows up in journalctl : "systemd[3975]: Failed to open private bus connection: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11." Are there any other environment variables that need to be added to that section? Feynman (talk) 23:57, 5 February 2013 (UTC)