#!/bin/bash # Check if the primary command exists if command -v screenpanel-sf &> /dev/null; then echo "new screenpanel" screenpanel-sf \ --persist_state individual \ --cam_alias true \ --size 1150x800 \ ${1+"$@"} else echo "old screenpanel" /sf/controls/bin/screen_panel \ --persist_state individual \ --cam_alias true \ --size 1150x800 \ ${1+"$@"} fi