Skip to content

[Feature request] Prompt user to elevate with sudo on Linux (optionally Windows) on the permissions denied modal. #759

@Nereithr

Description

@Nereithr

Apologies if it's something already slated for 2.0 or addressed elsewhere.

Currently when editing system files in /etc and the like, one needs to preemptively call edit with sudo edit to save the file. If you forget to do so and do a bunch of edits, any changes made in an un-eleveated session will be lost once you realize your mistake (unless you manually copy them).

Certain other TUI editors prompt to elevate with sudo. If you accept, your session is saved, you are dropped out into the shell, type in your sudo password, get dropped back into your session with all the changes still intact, the save functionality is ran as superuser and the editor gets un-elevated again(the TUI abides by sudo timeout rules so subsequent saves don't need a password).

It would be extremely nice to see this functionality in Edit, specifically as a rework of the current permissions denied modal window.

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-featureFeature requests and any other major tasks. Requires major work in the 1000s of LOC.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions