mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-19 22:46:14 -05:00
fix: match NixOS polkit service path
This commit is contained in:
2 files changed
+4
-3
No files matched your search
@@ -350,6 +350,7 @@ jobs:
|
|||||||
test -x result/bin/gpgui
|
test -x result/bin/gpgui
|
||||||
head -n1 result/bin/gpclient | grep '^#!'
|
head -n1 result/bin/gpclient | grep '^#!'
|
||||||
grep -q '/run/wrappers/bin/pkexec' result/bin/gpclient
|
grep -q '/run/wrappers/bin/pkexec' result/bin/gpclient
|
||||||
|
grep -q 'gpservice_public=.*/bin/gpservice' result/bin/gpclient
|
||||||
|
|
||||||
! grep -R '/usr/bin/gp' result/share
|
! grep -R '/usr/bin/gp' result/share
|
||||||
|
|
||||||
|
|||||||
@@ -245,7 +245,7 @@
|
|||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
gpclient_fhs='${prebuiltCommands.gpclient}/bin/gpclient'
|
gpclient_fhs='${prebuiltCommands.gpclient}/bin/gpclient'
|
||||||
gpservice_fhs='${prebuiltCommands.gpservice}/bin/gpservice'
|
gpservice_public='$out/bin/gpservice'
|
||||||
|
|
||||||
if [ "''${1:-}" = "launch-gui" ]; then
|
if [ "''${1:-}" = "launch-gui" ]; then
|
||||||
shift
|
shift
|
||||||
@@ -289,9 +289,9 @@
|
|||||||
|
|
||||||
set +e
|
set +e
|
||||||
if [ -n "$minimized" ]; then
|
if [ -n "$minimized" ]; then
|
||||||
"$pkexec_bin" --user root "$gpservice_fhs" --minimized --env-file "$env_file" 2>"$log_file"
|
"$pkexec_bin" --user root "$gpservice_public" --minimized --env-file "$env_file" 2>"$log_file"
|
||||||
else
|
else
|
||||||
"$pkexec_bin" --user root "$gpservice_fhs" --env-file "$env_file" 2>"$log_file"
|
"$pkexec_bin" --user root "$gpservice_public" --env-file "$env_file" 2>"$log_file"
|
||||||
fi
|
fi
|
||||||
status=$?
|
status=$?
|
||||||
set -e
|
set -e
|
||||||
|
|||||||
Reference in new issue
Block a user