I think get_terminal assumed jconsole had been started inside
a terminal emulator, this is not always true. Eg, I usually 
boot linux into console without x-window started, in such 
case no terminal emulator had been run and get_terminal returned
/bin/bash.

IMO gnome-terminal is not a sensible fallback, it is better
to try which 'gnome-terminal' which 'kconsole' etc to test if
some known common terminal emulators are installed.

Пт, 07 апр 2017, Eric Iverson написал(а):
> Read your earlier message more carefully and think I might see the problem.
> 
> You say you started jconsole with:
> 
> in terminal "konsole" with command ./jconsole.sh
> 
> This is perfectly reasonable, but it introduces an extra level in the ps
> pid tree that get_terminal doesn't handle.
> 
> Please try one more experiment.
> 
> start jconsole with: in terminal konsole run command
> path_to_j_folder/bin/jconsole
> (that is, do not run the .sh which I think is what causes the problem)
> 
> Then run get_terminal to see if it reports (finally) konsole. You may still
> have to NB. the gnome kludge.
> 
> Thanks!
> 
> 
> 
> On Fri, Apr 7, 2017 at 3:44 PM, Arie Groeneveld <[email protected]>
> wrote:
> 
> >    get_terminal_jinstaller_''
> > /bin/bash
> >
> >
> > Op 07-04-17 om 20:27 schreef Eric Iverson:
> >
> > Arie,
> >>
> >> I think the last change I made (kludge for gnome-terminal-server) causes
> >> the problem on your system.
> >>
> >> Here is the defn of get_terminal from installer.ijs:
> >>
> >> get_terminal=: 3 : 0
> >> p=. (shell'ps -o ''ppid='' -p $$')-.' ',LF
> >> p=. (shell'ps -o ''ppid='' -p ',p)-.' ',LF
> >> t=. shell'ps -o ''cmd='' -p ',p
> >> t=. ((t i.' '){.t)-.LF
> >> t=. ;('/'={.t){t;'gnome-terminal' NB. kludge /.../gnome-terminal-server
> >> )
> >>
> >> Edit the last line to start with NB. (avoid the kludge) and run it again
> >> and let me know that result.
> >>
> >> Thanks.
> >>
> >>
> >>
> >> On Fri, Apr 7, 2017 at 2:09 PM, Arie Groeneveld <[email protected]
> >> >
> >> wrote:
> >>
> >> JHS version 1.0.280
> >>>
> >>>     get_terminal_jinstaller_''
> >>> gnome-terminal
> >>>
> >>> Before I changed the jc806 desktop icon command line as mentioned I
> >>> started jconsole within the terminal "konsole" with ./jconsole.sh.
> >>>
> >>> BTW I normally use J with jqt. Just tried jhs to see if it works for me.
> >>> It turned out I had to make these corrections in the desktop icons.
> >>>
> >>> Another thing is that I only use the KDE GUI and the gnome-terminal is
> >>> not
> >>> loaded on my system.
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> Op 07-04-17 om 19:35 schreef Eric Iverson:
> >>>
> >>> Arie,
> >>>
> >>>> Thanks for the feedback.
> >>>>
> >>>> I thought the latest version of installer.ijs shortcut would correctly
> >>>> detect and use konsole.
> >>>>
> >>>> Could your perhaps provide some additional info:
> >>>>
> >>>> After updating JHS to be sure to have the latest installer.ijs please
> >>>> do:
> >>>>
> >>>> start jconsole
> >>>>      load'~addons/ide/jhs/installer.ijs'
> >>>>      get_terminal_jinstaller_''
> >>>>
> >>>> What is the result?
> >>>>
> >>>> How did you start jconsole? E.g., start terminal and exec .../jconsole,
> >>>> or
> >>>> click jconsole.sh, or whatever?
> >>>>
> >>>>
> >>>> On Fri, Apr 7, 2017 at 7:41 AM, Arie Groeneveld <
> >>>> [email protected]
> >>>> wrote:
> >>>>
> >>>> Dear Eric,
> >>>>
> >>>>> I use linux opensuse leap 42.1 and I had to change the command lines of
> >>>>> the desktop icons to:
> >>>>>
> >>>>> jhs: konsole -e "/home/arie/j64-806/bin/jconsole
> >>>>> ~addons/ide/jhs/config/jhs.cfg"
> >>>>>
> >>>>> jconsole: konsole -e "/home/arie/j64-806/bin/jconsole"
> >>>>>
> >>>>> note: Replacing konsole with xterm works also for me.
> >>>>>
> >>>>> In the startup konsole there's also the message:
> >>>>> "~ /lib64/libtinfo.so.5: no version information available (required by
> >>>>> /home/arie/j64-806/bin/jconsole)"
> >>>>>
> >>>>>
> >>>>> FYI
> >>>>>
> >>>>> Arie
> >>>>> ----------------------------------------------------------------------
> >>>>> For information about J forums see http://www.jsoftware.com/forums.htm
> >>>>>
> >>>>> ----------------------------------------------------------------------
> >>>> For information about J forums see http://www.jsoftware.com/forums.htm
> >>>>
> >>>> ----------------------------------------------------------------------
> >>> For information about J forums see http://www.jsoftware.com/forums.htm
> >>>
> >>> ----------------------------------------------------------------------
> >> For information about J forums see http://www.jsoftware.com/forums.htm
> >>
> >
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to