Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code --no-sandbox --user-data-dir=~ opens to blank window as root #185150

Closed
reukiodo opened this issue Jun 14, 2023 · 2 comments
Closed

code --no-sandbox --user-data-dir=~ opens to blank window as root #185150

reukiodo opened this issue Jun 14, 2023 · 2 comments
Assignees
Labels
sandbox Running VSCode in a node-free environment

Comments

@reukiodo
Copy link

Type: Bug

  1. log in as root
  2. apt -y reinstall ./code_1.79.1-1686587647_amd64.deb
  3. code --no-sandbox --user-data-dir=~

VSCode opens a window frame with only a menu and blank workspace, no status bar, no side bar. None of the menu items work when clicked. The UI is fully broken.

2023-06-14 10:42:49 root@control-tower:~# apt -y reinstall ./code_1.79.1-1686587647_amd64.deb 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'code' instead of './code_1.79.1-1686587647_amd64.deb'
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
After this operation, 0 B of additional disk space will be used.
Get:1 /root/code_1.79.1-1686587647_amd64.deb code amd64 1.79.1-1686587647 [95.9 MB]
(Reading database ... 108537 files and directories currently installed.)
Preparing to unpack .../code_1.79.1-1686587647_amd64.deb ...
Unpacking code (1.79.1-1686587647) over (1.79.1-1686587647) ...
Setting up code (1.79.1-1686587647) ...
Processing triggers for shared-mime-info (2.0-1) ...
Processing triggers for mailcap (3.69) ...
Processing triggers for desktop-file-utils (0.26-1) ...
W: Repository is broken: code:amd64 (= 1.79.1-1686587647) has no Size information
N: Download is performed unsandboxed as root as file '/root/code_1.79.1-1686587647_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
2023-06-14 10:46:52 root@control-tower:~# code --no-sandbox --user-data-dir=~
2023-06-14 10:48:16 root@control-tower:~# cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
2023-06-14 10:54:35 root@control-tower:~# cat /proc/version 
Linux version 5.10.0-22-amd64 (debian-kernel@lists.debian.org) (gcc-10 (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 SMP Debian 5.10.178-3 (2023-04-22)
2023-06-14 10:54:48 root@control-tower:~# 
@reukiodo
Copy link
Author

image

@bpasero bpasero assigned deepak1556 and unassigned andreamah Jun 14, 2023
@bpasero bpasero added the sandbox Running VSCode in a node-free environment label Jun 14, 2023
@deepak1556
Copy link
Collaborator

/duplicatte #184687

@github-actions github-actions bot locked and limited conversation to collaborators Jul 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
sandbox Running VSCode in a node-free environment
Projects
None yet
Development

No branches or pull requests

5 participants