Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
tty -s && PRINTOUT=/dev/stdout || PRINTOUT=/dev/null
# the following exports are needed when running in system cron
export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"
export HOME=/home/myhome # change this!!
export MYLANG=it-IT # and eventually also this
export XDG_RUNTIME_DIR=/run/user/1000
export XDG_SEAT=seat0