Thread View: news.software.readers
4 messages
4 total messages
Started by Boojum
Sat, 06 May 2000 00:00
[slrn] X browser
Author: Boojum
Date: Sat, 06 May 2000 00:00
Date: Sat, 06 May 2000 00:00
10 lines
771 bytes
771 bytes
Under X, I'd like slrn to invoke Netcape, if it is already open. Otherwise I'd like to run lynx. How can I accomplish this? -- For every action there is an equal and opposite government program.
Re: [slrn] X browser
Author: Matthew Haley
Date: Sat, 06 May 2000 00:00
Date: Sat, 06 May 2000 00:00
22 lines
1475 bytes
1475 bytes
On 6 May 2000 01:47:47 GMT, Boojum <boojum@att.invalid> wrote: >Under X, I'd like slrn to invoke Netcape, if it is already open. >Otherwise I'd like to run lynx. How can I accomplish this? --~/.slrnrc % WWW browser to use. The 'U' key in article mode searches the current article % for a URL and then calls X browser if slrn appears to be run in X windows % and non_Xbrowser otherwise. Note: The second Xbrowser form assumes that % netscape is already running. set non_Xbrowser "lynx '%s'" %set Xbrowser "netscape '%s' &" set Xbrowser "netscape -remote 'openURL(%s)' &" -- Matthew Haley <mrh99@uswest.net> Now showing... Mandrake Linux 7.02 9:45pm up 6 days, 17:24, 4 users, load average: 0.14, 0.21, 0.12
Re: [slrn] X browser
Author: Heikki Kantola
Date: Sat, 06 May 2000 00:00
Date: Sat, 06 May 2000 00:00
31 lines
2158 bytes
2158 bytes
Matthew Haley <mrh99@uswest.net> informed news.software.readers with the following: >On 6 May 2000 01:47:47 GMT, > Boojum <boojum@att.invalid> wrote: >>Under X, I'd like slrn to invoke Netcape, if it is already open. >>Otherwise I'd like to run lynx. How can I accomplish this? > >--~/.slrnrc >% WWW browser to use. The 'U' key in article mode searches the current article >% for a URL and then calls X browser if slrn appears to be run in X windows >% and non_Xbrowser otherwise. Note: The second Xbrowser form assumes that >% netscape is already running. >set non_Xbrowser "lynx '%s'" >%set Xbrowser "netscape '%s' &" >set Xbrowser "netscape -remote 'openURL(%s)' &" The above only does nothing if Netscape isn't running, however one could try something like this (requires sh-compatible shell): if netscape -remote 'openURL(%s)' & 2>/dev/null; then true; else lynx '%s'; fi I haven't tried that in action, so it might need some tweaking. -- Heikki "Hezu" Kantola, <Heikki.Kantola@IKI.FI> L�hett�m�ll� mainoksia tai muuta asiatonta s�hk�postia yll� olevaan osoitteeseen sitoudut maksamaan oikolukupalvelusta FIM500 alkavalta tunnilta.
Re: [slrn] X browser
Author: boojum Boojum
Date: Sun, 07 May 2000 00:00
Date: Sun, 07 May 2000 00:00
27 lines
1586 bytes
1586 bytes
On 6 May 2000 09:17:57 GMT, Heikki Kantola <hezu@iki.fi> wrote: ... >The above only does nothing if Netscape isn't running, however one >could try something like this (requires sh-compatible shell): > > if netscape -remote 'openURL(%s)' & 2>/dev/null; then true; > else lynx '%s'; fi > >I haven't tried that in action, so it might need some tweaking. Thanks. This pointed me in the right direction. netscape doesn't seem to return a useful value, but I used the existence of error output to decide whether to call lynx. > >-- >Heikki "Hezu" Kantola, <Heikki.Kantola@IKI.FI> >L�hett�m�ll� mainoksia tai muuta asiatonta s�hk�postia yll� olevaan >osoitteeseen sitoudut maksamaan oikolukupalvelusta FIM500 alkavalta >tunnilta. -- If you are never scared or embarrassed or hurt, it means you never take chances. (Julia Soul)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads