#!/bin/sh
if [ -z "$*" ] || [ "$1" = '--tray-only' ]; then
    exec /usr/bin/env -u SESSION_MANAGER "FONTCONFIG_FILE=/opt/kaspersky/kesl/resource/fonts.conf" "/opt/kaspersky/kesl/libexec/kesl-gui" "$@"
else
    exec "/opt/kaspersky/kesl/bin/kesl-control" --scan-file "$@"
fi