You are not logged in.

#1 2024-01-20 10:36:26

classikh
Member
Registered: 2023-06-13
Posts: 43

How to launch VSCODE with admin privileges.

I have installed the vscode from yay. The 'visual-studio-code-bin' package from aur.

I have an extension "Apc Custom UI" that requires vscode to have admin privileges. When i launch the application it shows the below error in vscode.

Apc Extension failed: Error: EACCES: permission denied, rename '/opt/visual-studio-code/resources/app/out/bootstrap-amd.js' -> '/opt/visual-studio-code/resources/app/out/bootstrap-amd.js.apc.extension.backup'

How do i resolve this?

Offline

#2 2024-01-20 10:41:47

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,896
Website

Re: How to launch VSCODE with admin privileges.

Mod note: moving to AUR Issues


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2024-01-20 13:49:01

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,958

Re: How to launch VSCODE with admin privileges.

Looks like this may be an upstream issue, see https://github.com/drcika/apc-extension/issues/131


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#4 2024-01-20 14:34:59

seth
Member
Registered: 2012-09-03
Posts: 51,608

Re: How to launch VSCODE with admin privileges.

Same as https://github.com/drcika/apc-extension/issues/124

Don't try to run visual studio as root!
Do not run any of the chmod/chown insanities in the upstream bug comments!

The only correct answer is to not use this extension, metoo the upstream bugs and ask the maintainer to fix that.
Afaics it's just to rice-up vscode for r/unixporn? Simply abandon that idea - or at least using that extension for the purpose.

Offline

Board footer

Powered by FluxBB