make gufw-pkexec more flexible

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

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:

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

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

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

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

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