#!/bin/sh
program="/usr/lib64/libexec/ksystemlog"

pkexec "$program" "$@"
result=$?

# If polkit dialog was closed by user,
# then start program without root rights.
if [ "$result" = 126 ] || [ "$result" = 127 ] ;
then
    "$program" "$@"
fi
