#!/bin/sh # Export the dbus session address on startup so it can be used by cron # use in cron /home/brb/.config/Xdbus; xdbus=$HOME/.config/Xdbus touch $xdbus chmod 600 $xdbus env | grep DBUS_SESSION_BUS_ADDRESS > $xdbus echo 'export DBUS_SESSION_BUS_ADDRESS' >> $xdbus # Export XAUTHORITY value on startup so it can be used by cron env | grep XAUTHORITY >> $xdbus echo 'export XAUTHORITY' >> $xdbus