Skip to content

Kitty opening file in non privilge esc version? #6245

Closed
@Stetsed

Description

@Stetsed

Describe the bug
I am using edit-in-kitty in my script which I have set up to first check if the file exists, if not it touches the file with either sudo or not sudo depending on if the area is writable. It then if it's not writeable then it opens with the command "sudo edit-in-kitty (file)", however what I'm noticing is that when I'm not in an SSH session it doesn't open it in an escalated privileve which means when I try to edit files which require privilge it opens in read only. I'm using neovim as my editor.
To Reproduce
Steps to reproduce the behavior:

  1. Find a file that requires sudo to edit
  2. use "sudo kitten edit-in-kitty (file)" outside of an SSH session
  3. It will open the file in a normal editor not with privilges escalated
    Screenshots
    If applicable, add screenshots to help explain your problem.

Environment details

(Will post in a followup as I need to login on my laptop while writing this on my desktop

Additional context
Does the same with no config specified

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions