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: 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)
Increasing priority of user services
How can I increase priority for user services? When I try to use
CPUShares=2048, I get
Failed to create cgroup cpu:/user/1000.user/2.session/systemd-536/xorg.service: Permission denied, when I try to use
Nice=-15, I get
Failed at step NICE spawning /usr/bin/xorg-launch-helper: Permission denied.