#!/bin/sh # # rdesktop-maximized - start rdesktop nearly-maximized on the largest screen # # $Id$ margin=25 Die() { echo fatal error: $@ 1>&2; exit 1; } DieIfMissing() { for x in "$@" do command -v "$x" >/dev/null || Die cannot find required executable $x done } DieIfMissing rdesktop xon=xonlargestdisplay case "$1" in -x) xon=xonjointdisplay shift ;; esac DieIfMissing $xon exec rdesktop -g `$xon` "$@"