#!/bin/bash

#=========================================#
# Simple update notifier (DNF) v0.3.9     #
#=========================================#

EXEC="/usr/share/simple-notifier/scripts/update"
script_dir="$( cd "$( dirname "$0" )" && pwd )"
script="`basename $0`"
script_path_n_name="${script_dir}/${script}"
GUI_SU="pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY"
if [ "$UID" != "0" ]; then
$GUI_SU "$EXEC"; exit;
fi
