Skip to content

Test: running vscode with gksudo or sudo permission #5062

@Tyriar

Description

@Tyriar

Test plan for #3068

  • Test Ubuntu
  • Test Fedora

Basic test case

sudo mkdir ~/perms-test
sudo touch ~/perms-test/file
sudo code-alpha --user-data-dir ~/root-data-dir ~/perms-test
# edit and save `file` in vscode

Known limitations

  • Files can only be saved if the root user has write access, you can check file permissions using ls -la. Example output gives -rw-r--r-- which means user read/write, group read, all read. If the 'daniel' user owns this file, 'root' will be able to read but not save.
  • Opening the browser via vscode will hang the editor, see Calls to shell.openExternal hang vscode when running as root user #5063

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions