17 lines
458 B
Diff
17 lines
458 B
Diff
--- a/bin/gufw-pkexec
|
|
+++ b/bin/gufw-pkexec
|
|
@@ -1,2 +1,11 @@
|
|
#!/bin/bash
|
|
-python3 /usr/share/gufw/gufw/gufw.py $1
|
|
+LOCATIONS=`ls -ld /usr/lib*/python*/site-packages/gufw/gufw.py | awk '{print $9}'` # from source
|
|
+LOCATIONS=( "${LOCATIONS[@]}" "/usr/share/gufw/gufw/gufw.py" ) # deb package
|
|
+
|
|
+for ((i = 0; i < ${#LOCATIONS[@]}; i++))
|
|
+do
|
|
+ if [[ -e "${LOCATIONS[${i}]}" ]]; then
|
|
+ python3 ${LOCATIONS[${i}]} $1
|
|
+ fi
|
|
+done
|
|
+
|
|
|