lapce / lapce/lapce

Use Polkit to ask root password when user attempts to save a privileged file

Open
#1,697 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-editor C-feature P-linux
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.