make gufw-pkexec more flexible

Bug #1834599 reported by LiohMoeller
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gufw
Fix Released
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.

Revision history for this message
LiohMoeller (liohmoeller) wrote :
Revision history for this message
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)
costales (costales)
Changed in gui-ufw:
status: In Progress → Fix Committed
costales (costales)
Changed in gui-ufw:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.