When saving following line in UserSetupEnvironment file
export LIBRARY_PATH="/boot/home/lib:$LIBRARY_PATH"
it has no effect after reboot. Why ?
For PATH it works.
Since file system is read-only I cannot edit other places.
Is there any other way to add library search path ?
How to launch Haiku using read-write file system for /boot/system folder ?
You can’t write to /boot/system. This is not (only) a security feature, its because /boot/system is not stored directly on the hard disk but built dynamically from the content of HPKG files (located in /system/packages). If really needed, you could edit the packages using the “package” tool.
You can use the /system/non-packaged/ directory, which is writable, for experimenting. There is a "lib" folder there, and also one in home/config/non-packaged/lib, which are already in the LIBRARY_PATH.
Setting things in UserSetupEnvironment should work, but only for the user. In particular, when running an application through the Roster (for example when double clicking it in Tracker), the app may escape the user context and not take your changes into account. Also, the variable may be overwritten by the default /etc/profile or your own .profile or .bashrc files?
1 Like
Thanks.
In /etc/profile no mention relating to LIBRARY_PATH and .profile nor .bashrc does not exist.
I will try other methods suggested.
You can create a profile or inputrc in ~/config/settings/. Not sure about bashrc. In general, Haiku expects (correctly ported) apps to put their file into ~/config/settings/ without the “.” in front. Possibly in a subfolder there.
Regards,
Humdinger
1 Like