Comment 36 for bug 1713238

Revision history for this message
Franck (alci) wrote :

Yes, that was my previous comment:

~$ cat /usr/bin/gufw*
#!/bin/sh
c_user=$(whoami)
pkexec gufw-pkexec $c_user

#!/bin/bash
LOCATIONS=(
"/usr/lib/python3.5/site-packages/gufw/gufw.py"
"/usr/lib/python3.5/dist-packages/gufw/gufw.py"
"/usr/share/gufw/gufw/gufw.py"
)

for ((i = 0; i < ${#LOCATIONS[@]}; i++))
do
    if [[ -e "${LOCATIONS[${i}]}" ]]; then
        python3 ${LOCATIONS[${i}]} $1
    fi
done