On 2021年6月16日 18:07:54 JST, 'Rudolf Sykora' via Programming
<[email protected]> wrote:
>Hello,
>
>
>>> what libraries are actually needed to get an output of 'plot' on
>>> screen?
>>> Is qt needed for that?
>
>Julian Fondren <[email protected]> writes:
>
>> system/main/stdlib.ijs has a list of commands that it tries in
>> linux_pdfreader. The first x that `which x` succeeds for gets
>> used. The initial one xdg-open usually works. OSX gets 'open'
>> which is a similar "use whatever app works for the argument"
>> program.
>>
>> linux_pdfreader_j_
>> +--------+------+----+----+------+--------+
>> |xdg-open|evince|kpdf|xpdf|okular|acroread|
>> +--------+------+----+----+------+--------+
>> PDFReader_j_
>> xdg-open
>>
>> So you shouldn't need any qt libraries at all, just
>> one of those programs.
>>
>> jhs renders plots very nicely as well, within the browser.
>
>
>thanks for the reply.
>
>I ran jconsole on a computational grid where none of the mentioned
>commands is installed. Anyhow, it now seems to me, from reading the
>source of 'plot', that the plot command, if run from jconsole, tries qt
>first, then tries various other options, and probably saves output to a
>file in the last resort.
>
>Thank you.
>
>
>Best regards
>Ruda
>
>----------------------------------------------------------------------
>For information about J forums see http://www.jsoftware.com/forums.htm
Not sure if it was already clear from the previous discussion, but you can set
PDFReader_j_ manually to override all that fallback logic. Under ~config I have
mine set to something like
PDFReader_j_=: 'zathura'
IIRC however, when the above noun is empty, xdg-open is the first thing plot
ends up trying on Linux. I don't remember seeing qt-specific stuff being called
before that when I previously made the patch for calling out to xdg-open.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm