jsoftware / jsource

J engine source mirror
Other
645 stars 91 forks source link

Is there an easy way to install addons without root access ? #141

Open leiserfg opened 1 year ago

leiserfg commented 1 year ago

It will be nice to be able to use "user addons", as linux user, having a program that writes in the system folders (that is not the system package manager) can be problematic.

cdburke commented 1 year ago

The location of addons is given in the profile.ijs script loaded at start up. By default, this script is in the J bin directory.

If you can edit this script, then set addons to be a directory where you have write access. Initialize it by copying over the original addons.

Otherwise, create a profile script where you have write access and start J using this profile, e.g. something like

.../bin/jconsole -jprofile ~/myjprofile.ijs "$@"

leiserfg commented 1 year ago

I was thinking in something like python user libs, like calling load checks both systemwide packages and (for instance) jpath'~config/addons'.