Skip to content

Commit 11158c7

Browse files
committed
Fix Python invocation on Ubuntu 22.04 (jammy)
It doesn't support -P yet. Let's ignore that problem there.
1 parent d7e75a3 commit 11158c7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

qubes.Gpg2.service

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,11 @@ for d in /etc "${XDG_CONFIG_HOME:-$HOME/.config}"; do
77
fi
88
done
99

10-
/usr/bin/python3 -P -m splitgpg2
10+
# The Python on Ubuntu 22.04 doesn't support -P yet. So don't try to use it
11+
# there.
12+
p=/usr/bin/python3
13+
if $p -P -c '' 2>/dev/null; then
14+
p="$p -P"
15+
fi
16+
17+
$p -m splitgpg2

0 commit comments

Comments
 (0)