summaryrefslogtreecommitdiff
path: root/.xinitrc
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-02-22 15:26:32 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-02-22 15:26:32 +0100
commitcd7b9648ec361db65a597b99939b2a3659b76a2d (patch)
tree42e9c9c70a6cda89537b6ad25abc70bd44810f33 /.xinitrc
parentf2eebc0cc9a23013dae5e1b820213d11964df451 (diff)
downloaddotfiles-cd7b9648ec361db65a597b99939b2a3659b76a2d.tar.gz
dotfiles-cd7b9648ec361db65a597b99939b2a3659b76a2d.tar.bz2
dotfiles-cd7b9648ec361db65a597b99939b2a3659b76a2d.zip
xinitrc: Add custom path for a systemd session
Diffstat (limited to '.xinitrc')
-rw-r--r--.xinitrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/.xinitrc b/.xinitrc
index 8333572..057e3ef 100644
--- a/.xinitrc
+++ b/.xinitrc
@@ -1,3 +1,9 @@
+#!/bin/sh
+
+if [ "x$1" = "xsystemd" ]; then
+ export DBUS_SESSION_BUS_ADDRESS=unix:path=$XDG_RUNTIME_DIR/dbus/user_bus_socket
+ exec /usr/lib/systemd/systemd --user
+fi
# Pass -ardelay 250 -arinterval 20 to X server instead.
#xset r on