#!/bin/sh
PARAMETERS="$*"
if ! echo $PARAMETERS | grep "\-p"; then
	if test "x$DISPLAY" = "x"; then
		PARAMETERS="$PARAMETERS -p console"
	else
		PARAMETERS="$PARAMETERS -p qt-gui"
	fi
fi
exec /usr/lib/licq/licq-bin $PARAMETERS
