fix(nix): authorize desktop service outside the FHS sandbox

This commit is contained in:
Kevin Yue committed 2026-10-07 17:52:49 +08:00
1 parent 48d7938541
commit 673cf464b0
4 files changed
+52

No files matched your search

+5
View File
@@ -401,6 +401,11 @@
export GP_SERVICE_BINARY='@gpservice_public@'
export GP_AUTH_BINARY='@gpauth_public@'
export GP_GUI_BINARY='${hostGuiLauncher}'
if [ "''${1:-}" = "launch-gui" ]; then
# Authorization must run before entering Bubblewrap, which disables setuid elevation.
export PATH=/run/wrappers/bin:$PATH
exec '${prebuiltFiles}/bin/gpclient' "$@"
fi
exec '${prebuiltCommands.gpclient}/bin/gpclient' "$@"
EOF
substituteInPlace $out/bin/gpclient \