NodeJS sidecar name conflict
complete
SoftExpert
Applicable to Arch-based distros / Debian / Ubuntu ...
Hello,
On most Linux systems, there is already a node binary module in /usr/bin, which has a totally different set of features and dependencies than the node module delivered with the Yaak DEB package.
I created today an AUR package and I made a workaround - moved the 3 binaries in /usr/local/bin, thus avoiding to overwrite the node module in /usr/bin.
However, this is not ideal:
- there could be users that have already deployed a node version in /usr/local/bin
- the node module delivered in the DEB package is specially compiled to work with the other dependencies of the application - I confirmed this by just trying to use the system wide node module. The standard nodejs binaries found in the packaging system of different distros are not compatible with Yaak.
There could be 2 solutions in my view:
- rename the node module into something specific for Yaak (i.e. node-yaak)
- try to use the system-provided node (which is a can of worms - we cannot know which version is installed and compatible with what Yaak needs)
Anyway, installing the current DEB package is problematic.
Hopefully there is an easy to implement solution ...
Best regards,
SoftExpert
Gregory Schier
complete
The NodeJS sidecar is now renamed to
yaaknode
in beta 8. Similary, protoc
was renamed to yaakprotoc
as well.SoftExpert
The DEB package is correctly generated and the content is in it's rightful place.
Perhaps the only thing that needs to change is the name of the
node
module. Doing so will eliminate the need for a workaround like moving the binaries from /usr/bin into /usr/local/bin and, definitely, would eliminate potential file name conflicts.Besides that, I happily use the version installed from the DEB package (through the AUR package) on my Linux, the app is stable and there are no missing icons.
Thank you !
Gregory Schier
in progress
Thanks for this bit of info. I didn't realize Tauri copied the vendored binaries to /usr/local/bin on start (it doesn't on Win/Mac). I will rename to something Yaak specific to avoid this!