#!/bin/sh


PROGNAME=${0##*/}
PROGVERSION="5.0"



# --------------------
# Help and Information
# --------------------

# When requested show information about script
if [ "$1" = '-h' ] || [ "$1" = '--help' ]; then
cat << end-of-messageblock

$PROGNAME version $PROGVERSION
A launch script for connectshares-config.sh

Usage: 
   $PROGNAME [options]

Options:
   -h, --help     Show this output

Summary:
   Runs connectshares-config.sh in a terminal window.  The size of the window
   is chosen to match the window size used by connectshares-config.sh.

Requires:
   connectshares-config.sh, sudo, urxvt

end-of-messageblock
   exit 0
fi


# --------
# Launcher
# --------

# switches
#  -geometry    Open a terminal window that matches the size of the dialog boxes
#  +sb          Turn off scrollbar
#  -fn          Use a font size that is easy to read
#  -T           Assign a title to window
#  -e           Run following command in the terminal window
#
urxvt -geometry 80x25 +sb -fn 10x20 -T 'Connectshares Configuration' -e connectshares-config.sh
 