File opensnitch-ui of Package opensnitch

#!/bin/sh
#
# opensnitch-ui wrapper
#
# Author:  munix9@googlemail.com
# License: GPL-3.0-only
#

OS_UI=/usr/lib/opensnitchd/opensnitch-ui
RG_EX="/usr/bin/python.* ${OS_UI}.*"

#
# Option 1:
# Exit this wrapper if a running instance of opensnitch-ui already exists.
#
pgrep -fx "$RG_EX" >/dev/null 2>&1 && exit 0

#
# OR Option 2:
# Kill the running instance of opensnitch-ui and then start a new one.
#
#pkill -fx -15 "$RG_EX" >/dev/null 2>&1

exec $OS_UI "$@"
openSUSE Build Service is sponsored by