Skip to content

Commit

Permalink
Check if gksudo exists
Browse files Browse the repository at this point in the history
  • Loading branch information
korcankaraokcu committed Mar 4, 2019
1 parent af4f8ea commit efc9dfa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions PINCE.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

# Change this bullcrap when polkit is implemented
OS=$(lsb_release -si)
if [ $OS = "Debian" ]; then
# Get rid of gksudo when Debian 8 support drops or polkit gets implemented
if [ $OS = "Debian" ] && [ -x "$(command -v gksudo)" ]; then
gksudo python3 PINCE.py
else
sudo python3 PINCE.py
fi
fi

0 comments on commit efc9dfa

Please sign in to comment.