Skip to content

Commit

Permalink
An ugly solution to issue 72
Browse files Browse the repository at this point in the history
Solution to the issue starcitizen-lug#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 polkit-org/polkit#201.
  • Loading branch information
crocodile13 authored Sep 22, 2024
1 parent df7d8e1 commit d840aaa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lug-helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d840aaa

Please sign in to comment.