From d840aaac13abef9d3cfa8876a9ca4d4a338337b7 Mon Sep 17 00:00:00 2001 From: crocodile13 <134718087+crocodile13@users.noreply.github.com> Date: Sun, 22 Sep 2024 16:03:12 +0200 Subject: [PATCH] An ugly solution to issue 72 Solution to the issue https://github.com/starcitizen-lug/lug-helper/issues/72. It's not very clean since I didn't really understand the core of the problem and its resolution... it's an 'implementation' of https://github.com/polkit-org/polkit/issues/201. --- lug-helper.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/lug-helper.sh b/lug-helper.sh index 43be6ef..167fca4 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -261,6 +261,7 @@ try_exec() { retval=0 # Use pollkit's pkexec for gui authentication with a fallback to sudo if [ -x "$(command -v pkexec)" ]; then + gnome-terminal -- bash -c "pkttyagent --process $$" pkexec sh -c "$1" # Check the exit status