Difference between revisions of "Talk:Systemd/User"

From ArchWiki
Jump to: navigation, search
(user: command or username)
(Remove closed discussion.)
(3 intermediate revisions by 2 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? --[[User:Maevius|Maevius]] ([[User talk:Maevius|talk]]) 11:31, 17 November 2012 (UTC)
+
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?
::Yes, you should use {{ic|--user}}. Think about it; if you had to specify your username, it would be instead something like {{ic|1=--user=''your-username''}}. Having a flag like {{ic|1=--''your-username''}} (including the {{ic|--}}), would be too weird. Also, if you do {{ic|man systemctl}}, you'll see the the option is {{ic|--user}}. [[User:Chrisl|Chrisl]] ([[User talk:Chrisl|talk]]) 17:31, 8 January 2013 (UTC)
+
[[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)