On Sat, Jul 9, 2022 at 6:58 AM <[email protected]> wrote:
> On 07/09 06:37, Raul Miller wrote:
> > What do you get from
> >
> > $ echo exit 0 | strace -f bin/jconsole 2>&1 | fgrep config/startup.ijs
> >
> > (replacing bin/jconsole with a reference which finds your jconsole)?
>
> [pid  1816] openat(AT_FDCWD, "/home/user/j903-user/config/startup.ijs", 
> O_RDONLY) = 3
> [pid  1816] stat("/home/user/j903-user/config/startup.ijs", 
> {st_mode=S_IFREG|0644, st_size=97, ...}) = 0
> [pid  1816] access("/home/user/j903-user/config/startup.ijs", R_OK) = 0
> [pid  1816] access("/home/user/j903-user/config/startup.ijs", W_OK) = 0
> [pid  1816] access("/home/user/j903-user/config/startup.ijs", X_OK) = -1 
> EACCES (Permission denied)
> [pid  1816] openat(AT_FDCWD, "/home/user/j903-user/config/startup.ijs", 
> O_RDONLY) = 3
> [pid  1816] openat(AT_FDCWD, "/home/user/j903-user/config/startup.ijs", 
> O_RDONLY) = 3
>
> I already have utilzed /home/user/j903-user/config/startup.ijs and it works.
> Would be nice, if J would support the standard configuration paths in the 
> future, which
> are
>
> $HOME/.config/<name of the program>/<configuration files>

Hmm... it looks  like this would require a change to bin/profile.ijs

Specifically, replace the line:

config=. user,'/config'

with something like

config=. (2!:5'HOME'),'/.config/',({.~i.&'/')9!:14''

And possibly some other work at install time.

That said, this would not be portable to other operating systems.

I think it would be easier to install a symbolic link at ~/.confg/j904
(or J903 or whatever) pointing to J's config directory.

--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to