Of note is this same solution works for PhpStorm and the php interpreter. Personally, I make the file ~/bin/flatpak-node, but you can put it anywhere in the home directory. It works because the executable we created is in the home directory, and flatpak-spawn can run the command as if it was on the host (outside of the sandbox). This will create an executable file called flatpak-node in your home directory, with this content: #!/usr/bin/env shįlatpak-spawn -host node will tell Flatpak to run the node binary on the host and pass along any parameters. Run these two commands in shell: printf '#!/usr/bin/env sh\nflatpak-spawn -host node > ~/flatpak-nodeįile > Settings > Languages & Frameworks > Node.js and NPM (or TypeScript)Īnd set the Node Interpreter to ~/flatpak-node. However, there is a way to get around this, by having flatpak run the host binary using the flatpak-spawn.ġ. Flatpak is sandboxed, so it cannot directly run anything that is on the host, outside of the user's home directory.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |