Codebase list gui-ufw / 45aeeed
d/patches: add an upstream patch to avoid crash on start Closes: #1000169 Fabio Fantoni 2 years ago
3 changed file(s) with 45 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 gui-ufw (20.04.1-2.1) UNRELEASED; urgency=medium
1
2 * Non-maintainer upload.
3 * d/patches: add an upstream patch to avoid crash on start
4 (Closes: #1000169)
5
6 -- Fabio Fantoni <fantonifabio@tiscali.it> Tue, 14 Dec 2021 20:02:20 +0100
7
08 gui-ufw (20.04.1-2) unstable; urgency=low
19
210 [ Debian Janitor ]
0 Author: costales <costales.marcos@gmail.com>
1 Date: Sat, 12 Sep 2020 09:04:57 +0200
2 Description: [PATCH] Fixed LP #1873918: Fresh install hasn't site-packages
3 directory and this returns a dump
4
5 Origin: https://github.com/costales/gufw/commit/efd1fcafb33b8d711e46c9f6202f252d1cf30b79
6 ---
7 bin/gufw | 3 ---
8 bin/gufw-pkexec | 12 +-----------
9 2 files changed, 1 insertion(+), 14 deletions(-)
10
11 --- a/bin/gufw
12 +++ b/bin/gufw
13 @@ -1,6 +1,3 @@
14 #!/bin/bash
15 -if [ $(loginctl show-session $(loginctl|grep $(whoami) |awk '{print $1}') -p Type) = "Type=wayland" ]; then
16 - xhost +si:localuser:root
17 -fi
18 c_user=$(whoami)
19 pkexec gufw-pkexec $c_user
20 --- a/bin/gufw-pkexec
21 +++ b/bin/gufw-pkexec
22 @@ -1,12 +1,2 @@
23 #!/bin/bash
24 -LOCATIONS=`ls -ld /usr/lib/python*/site-packages/gufw/gufw.py | awk '{print $9}'` # from source
25 -LOCATIONS=( "${LOCATIONS[@]}" "/usr/share/gufw/gufw/gufw.py" ) # deb package
26 -
27 -for ((i = 0; i < ${#LOCATIONS[@]}; i++))
28 -do
29 - if [[ -e "${LOCATIONS[${i}]}" ]]; then
30 - python3 ${LOCATIONS[${i}]} $1
31 - fi
32 -done
33 -
34 -
35 +python3 /usr/share/gufw/gufw/gufw.py $1
0 fix-crash.patch