On 07/09 02:58, Raul Miller wrote:
> On Sat, Jul 9, 2022 at 2:09 AM <tu...@posteo.de> wrote:
> > (using Gentoo Linux...)
> >
> > With strace I found, that jconsole tries to open .jprofile.ijs from $HOME
> >
> > openat(AT_FDCWD, "/home/user/.jprofile.ijs", O_RDONLY) = -1 ENOENT (No such 
> > file or directory)
> >
> > I created that file and added some defines.
> >
> > After restarting jconsole none of the defines (via '=:') seemed to be there.
> >
> > Why are defines from that file are not visible from jconsole after restart 
> > jconsole?
> 
> Hmm... I cannot reproduce this (though I'm not on gentoo).
> 
> Here's what things currently look like for me:
> 
> $ cat .jprofile.ijs
> ABC_base_=:456
> ABC=: 123
> $ jconsole
>    ABC
> 123
> 
> So it's not a locale issue, and it seems to just work, for me...
> 
> Is it possible that you have something going on in your
> jpath '~user/config/startup.ijs' which is overriding what you're doing
> in your .jprofile.ijs?
> 
> Thanks,
> 
> --
> Raul
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

I have no /home/<username>/config.
With most Linux distros (so with mine) there is a 
/home/<username>/.config/<name of program>/<configuration files>,
which contains the configuration files per program for most programs.
But there is no ~/.config/jconsole directory.

As the trace shows, that jconsole searches for ~/.jprofile.ijs I think, that 
J/jconsole still uses the old pattern,
with which configuration files were thrown into $HOME. Nowadays the 
$HOME/<program name>/<its config files> is the
pattern of choice to prevent filling up $HOME with configuration files, which 
are hard to assign to programs and even
may lead to filename clashes.

When starting jconsole it does not print any error or warning though...

Is there any debug mode for jconsole to get more informations, what's going 
on?....strace is a very low level tool to
debug program via logging their system call into the Linux kernel....

Cheers!
Meino



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

Reply via email to