---Eric Iverson wrote: > > I'm not sure, but don't think the start is necessary. All it > does is ensure > that stuff starts in another window and in already is going > to do that in > this case. I don't think it changes the mapping of file to > application to > launch.
Of the following two commands only the first one opens the page in my browser (it only opens a new browser if one doesn't already exist). url=.'http://www.jsoftware.com/help/index.htm' wd 'winexec ',DEL,'cmd /C start "" "',url,'"',DEL,'sw_hide' wd 'winexec ',DEL,'cmd /C "',url,'"',DEL,'sw_hide' For a filename the start doesn't seem to be required and both commands above work for the following file. url=.'C:\Program Files\j602\help\index.htm' >Is it possible that all that is needed is that all > browser launches > use the code that is already in browser.ijs? I don't think that the launch_jbrowser_ will work currently for urls in any instance. With the addition of "start", it should work on win32 when there is no browser explicitly configured. However, my reading is that for all other cases a url will get prepended with 'file://' which will make it invalid. I tested my suggested changes using both J help and pacman. They seemed to work fine whether a browser was explicitly configured or not. I didn't test on Linux or Mac. > ----- Original Message ----- > From: "Sherlock, Ric" <[EMAIL PROTECTED]> > To: "Beta forum" <[email protected]> > Sent: Thursday, February 14, 2008 5:23 PM > Subject: RE: [Jbeta] Info Button on Package manager fails in > j & k win32 > builds > > > This works fine for me as long as a web browser is defined in > Edit|Configure|External Programs. If not, I also get the following > error. > ------ > error in: pmview_binfo_button > domain error: wd > wd'winexec *',cmd > ------ > > I think this is because the command for calling the default browser > (browser_view and dfltbrowser_jbrowser_) currently resolves > under win32 > as: > wd 'winexec * "<url>"' > Which doesn't work. The following would: > wd 'winexec ',DEL,'cmd /C start "" "<url>"',DEL,'sw_hide' > > To fix the problem I'd consider changing launch_jbrowser_ to work with > URLs as well as filenames and then use it rather than duplicating the > same mechanism in browser_view. I don't think this would be too hard. > For example ... > launch[6] from: > cmd=. 'cmd /C ',quoteit cmd > to: > cmd=. 'cmd /C start "" ',quoteit cmd > > > and a mechanism for recognizing a url rather than a filename in the > following else. block. Example ... > else. > browser=. quoteit browser > if. (# <: '://' i.&1@:E. ]) cmd do. > cmd=. '/' (I. cmd='\') } cmd > cmd=. 'file://',cmd > end. > cmd=. quoteit cmd > cmd=. browser,' ',cmd > show=.'' > end. > > browser_view in pacman.ijs could then be simplified to just: > > browser_view=: 3 : 0 > require '~system/extras/util/browser.ijs' > launch_jbrowser_ y > ) > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of John Baker > > Sent: Friday, 15 February 2008 05:49 > > To: Beta forum > > Subject: [Jbeta] Info Button on Package manager fails in j & > > k win32 builds > > > > Just a little ticky-boo problem I noticed today. > > > > When you click the Info button for a particular addon in > now throws a > > domain error. Previously > > it took you to the wiki page describing the addon. I noticed > > this in the J > > win32 build but it also > > fails in the current k win32 beta. > > > > jdb > > > ---------------------------------------------------------------------- > > 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
