File indexing completed on 2024-05-12 09:17:12
0001 unset DBUS_SESSION_BUS_PID 0002 0003 function setup { 0004 if [ -f ~/.dbusenv ]; then 0005 source ~/.dbusenv 0006 elif [ -f ~/dbusenv ]; then 0007 source ~/dbusenv 0008 else 0009 touch ~/.dbusenv 0010 fi 0011 0012 if [ -z "$DBUS_SESSION_BUS_PID" ]; then 0013 dbus-launch --sh-syntax > ~/.dbusenv 0014 echo "started dbus" 0015 else 0016 echo "dbus at $DBUS_SESSION_BUS_ADDRESS" 0017 echo "dbus at $DBUS_SESSION_BUS_PID" 0018 0019 if ps -p $DBUS_SESSION_BUS_PID > /dev/null; then 0020 echo "dbus is running" 0021 else 0022 echo "dbus killed, starting again" 0023 dbus-launch --sh-syntax > ~/.dbusenv 0024 echo "started dbus" 0025 fi 0026 fi 0027 source ~/.dbusenv 0028 } 0029 0030 setup