node 23.1.0
nvm 0.39.5
when in vscodium trying to run js script i get node command not found
I understand it is something to do with the sandboxing of flatpak
I just couldn’t find anything on the web to explain how to make vscodium use the host’s node command???
Here are some commands I tried:
sherab@frmwrk-ubu:~$ flatpak run --share=host com.vscodium.codium
error: Unknown share type host, valid types are: network, ipc
and
this one seemed to do something but in the terminal in vscodium it still couldn’t run node as command was not found
sherab@frmwrk-ubu:~$ flatpak run --filesystem=/home/sherab com.vscodium.codium
codium-wrapper: Setting up NPM packages
codium-wrapper: Setting up Cargo packages
codium-wrapper: Setting up Python packages
codium-wrapper: Setting up Ruby packages
Warning: 'enable-wayland-ime' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'enable-features' is not in the list of known options, but still passed to Electron/Chromium.
and
sherab@frmwrk-ubu:~$ flatpak run --filesystem=/home/sherab --env=PATH=$PATH:/home/sherab/.nvm/versions/node/v23.1.0/bin com.vscodium.codium
bwrap: execvp codium: No such file or directory
and the last terminal output (from the host) where I used these commands
sudo flatpak override com.vscodium.codium --filesystem=/home/sherab/.nvm/versions/node/v23.1.0/include/node
and
flatpak override com.vscodium.codium --filesystem=/home/sherab/.nvm/versions/node/v23.1.0/bin
~: flatpak info --show-permissions com.vscodium.codium
[Context]
shared=network;ipc;flatpak override com.vscodium.codium --filesystem=/home/sherab/.nvm/versions/node/v23.1.0/bin
sockets=x11;wayland;pulseaudio;fallback-x11;ssh-auth;
devices=all;
features=devel;
filesystems=home;/home/sherab/.nvm/versions/node/v23.1.0/bin;xdg-run/gnupg:ro;xdg-config/kdeglobals:ro;host-os;host;/home/sherab/.nvm/versions/node/v23.1.0/include/node;
persistent=.vscode-oss;
[Session Bus Policy]
org.freedesktop.Flatpak=talk
org.kde.kwalletd5=talk
com.canonical.AppMenu.Registrar=talk
org.freedesktop.secrets=talk
[System Bus Policy]
org.freedesktop.login1=talk
[Environment]
XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons
~: