save-as-root
save-as-root copied to clipboard
Incompatibility with Flatpak version of VScode
Since sudo
is not accessible within the sandbox (and pointing configuration to the full path of sudo
doesn't work since it odesn't load the necessary libraries), this extension doesn't work in the Flatpak version of VScode, which is a huge shame since it limits the ability to edit files in root directories.
I propose the ability to edit the call to the underlying sudo command so that it detects if it's running under flatpak, and if it is, make the appropriate call to sudo (or any other privilege escalation tool, like kdesu
) by prepending the command with flatpak-spawn --host
.