12-05-2022, 21:34
0
Cytat:blade@blade-GA-770T-D3L:~$ cat /usr/bin/gufw-pkexec
#!/bin/bash
LOCATIONS=ls -ld /usr/lib/python*/site-packages/gufw/gufw.py 2>/dev/null | 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
blade@blade-GA-770T-D3L:~$
Pozdrawiam
Blade
Blade