make gufw-pkexec more flexible

Bug #1834599 reported by Lioh on 2019-06-28
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gufw
Wishlist
costales

Bug Description

In order to make the gufw-pkexec script more flexible concerning Python versions, I would like to suggest to switch to the following content:

#!/bin/bash
LOCATION=$(python3 -c "import site; print(site.getsitepackages()[0])")/gufw/gufw.py

if [[ -e "$LOCATION" ]]; then
        python3 "$LOCATION" $1
fi

This would protect against minor changes e.g. from Python 3.6 to 3.7.

Lioh (lioh) wrote :
costales (costales) wrote :

Hi!
Thanks a lot for the code! I'll release for Gufw 20.04.
A hug!

Changed in gui-ufw:
importance: Undecided → Wishlist
status: New → In Progress
assignee: nobody → costales (costales)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments