#!/bin/bash

# Remove the lock file if it fails
CHECK=$(ps -ef | grep "dnf_app.py" | grep -v grep | wc -l)
if [[ "$CHECK" -eq 0 ]]; then
rm -f "/tmp/dnf_app.lock"
else
echo "Application is running"
fi
case "$LANG" in
    en_*)
        /usr/share/dnf-package-manager/dnf_app.py "$@"
        ;;
    *)
	sh -c 'LC_ALL=C /usr/share/dnf-package-manager/dnf_app.py' "$@"
        ;;
esac
