changeset 20:703a394b9780

script: dbus-launch script
author Goffi <goffi@goffi.org>
date Sun, 21 Sep 2014 21:43:47 +0200
parents dc5240f4b7b2
children 0e78c8a4626e
files scripts/dbus/dbus-launch.sh
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/scripts/dbus/dbus-launch.sh	Sun Sep 21 21:43:47 2014 +0200
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+DBUS_PATH="/tmp/.dbus.`whoami`"
+
+if [ ! -e $DBUS_PATH ]; then
+	dbus-launch --sh-syntax > $DBUS_PATH
+	chmod 400 $DBUS_PATH
+fi
+
+cat $DBUS_PATH