#!/bin/bash
# Need to execute in root 
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 "$@"; exit
fi
rm -f /etc/xdg/autostart/CPUthrottle.desktop


