#!/bin/bash
# automatically provide the -d option for sam, where needed
# multiple -d options do no harm

if [ -n "$DISPLAY" ]; then
	exec -a "$0" /usr/bin/sam.real "$@"
else
	exec -a "$0" /usr/bin/sam.real -d "$@"
fi
