]> git.pld-linux.org Git - packages/dbus.git/commitdiff
- restored
authorfreetz <freetz@pld-linux.org>
Wed, 12 Jul 2006 20:52:43 +0000 (20:52 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dbus-xinitrc.sh -> 1.3

dbus-xinitrc.sh [new file with mode: 0644]

diff --git a/dbus-xinitrc.sh b/dbus-xinitrc.sh
new file mode 100644 (file)
index 0000000..5a47ffb
--- /dev/null
@@ -0,0 +1,30 @@
+#! /bin/sh
+
+# Get configuration
+. /etc/sysconfig/dbus
+
+# Taken from rc-scripts
+is_yes()
+{
+       # Check value
+       case "$1" in
+         yes|Yes|YES|true|True|TRUE|on|On|ON|Y|y|1)
+               # true returns zero
+               return 0
+               ;;
+         *)
+               # false returns one
+               return 1
+               ;;
+       esac
+}
+
+if is_yes "${SESSION_BUS_X_SESSION}"; then
+    if  [ -f /usr/bin/dbus-launch ]; then
+       if [ -f /var/run/dbus.pid ]; then
+           if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
+               eval `dbus-launch --sh-syntax --exit-with-session`
+           fi    
+       fi
+    fi
+fi
This page took 0.031206 seconds and 4 git commands to generate.