45

I am using Linux Mint 20 and vscode 1.52.1.

My ~/.xsession-errors file shows Warning: 'sandbox' is not in the list of known options, but still passed to Electron/Chromium.

What is causing this error and what is the solution to it?

10
  • 1
    this is when you run your app, or when you run vscode (which is built on top of electron)
    – pushkin
    Dec 27, 2020 at 1:11
  • 17
    Seen on Ubuntu 21.04 too. The warning is produced while opening a file in VSCode. Jul 9, 2021 at 15:04
  • 3
    Seen on Ubuntu 20.04 too, when opening a file in VSCode, just like @peter.slizik said. Jul 10, 2021 at 16:40
  • 2
    Its mostly with vs code version 1.58.0 June 2021 release Jul 11, 2021 at 4:39
  • 7
    There is currently a ticket on github.com for this issue. It is with the new release!
    – hp77
    Jul 12, 2021 at 6:49

1 Answer 1

2

I removed the snap version and install the deb file which works for me

sudo snap remove code

Downlaod code_1.58.1-1626158276_amd64.deb (latest) file from https://code.visualstudio.com/download

and install it with --fix-broken option

cd ~/Downloads/ && sudo apt --fix-broken install ./code_1.58.1-1626158276_amd64.deb

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.