Use Polkit to ask root password when user attempts to save a privileged file
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 38.9k
- Forks
- 1.3k
- Avg merge
- 19m
- Merged PRs (30d)
- 1
Description
Is your feature request related to a problem? Please describe.
Edit and save a file that belongs to root.
Describe the solution you'd like
User should be able to open and edit a root file without sudo, but Lapce should open Polkit GUI to ask for root password.
Describe alternatives you've considered
Launching lapce with sudo. But it could carry security risk.
Additional context
This feature is similar to my request at https://github.com/microsoft/vscode/issues/161451
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files, tests, or entry points. Start by tracing Lapce’s file-save flow and identify how privileged paths are handled, then research the project’s supported platform constraints for Polkit. Done means users can save root-owned files through a Polkit password prompt without launching Lapce with sudo, with the permission behavior covered by appropriate tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- desktop, security
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100