Skip to content

docs(opencode): add Polkit elevated apt custom tool example#29317

Open
2409324124 wants to merge 1 commit into
anomalyco:devfrom
2409324124:polkit-elevated-apt-tool
Open

docs(opencode): add Polkit elevated apt custom tool example#29317
2409324124 wants to merge 1 commit into
anomalyco:devfrom
2409324124:polkit-elevated-apt-tool

Conversation

@2409324124
Copy link
Copy Markdown

Issue for this PR

Closes #29117

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds a custom tools example for Linux desktop users who need elevated apt operations without interactive sudo stdin.

The example uses pkexec apt-get ... so Polkit handles authentication through the system prompt. It also shows permission config that keeps the elevated tool behind approval and asks before direct package-manager commands.

This is a narrow docs workaround for package-manager use cases, not a replacement for the broader interactive terminal work tracked in #9808 / #8097.

How did you verify your code works?

  • git diff --check HEAD~1..HEAD -- packages/web/src/content/docs/custom-tools.mdx
  • bun run --cwd packages/web build
  • bun run typecheck

Screenshots / recordings

N/A, docs-only change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Document a Polkit custom tool for elevated apt commands

1 participant