Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

"browse" under view 1.2.10.3.1

 [1/16] from: ronaldoff:free at: 27-Jun-2003 0:20


Hello Rebolers, Here is my message again, seems nobody did read it ... For my question about "browse" under view 1.2.10.3.1, it worked fine with IE. Is it possible to use Mozilla instead ? I tried with mozilla's path under W98 SE : set-browser-path %/E/Program Files/MozillaFirebird/Mozilla.exe == "/E/Program Files/MozillaFirebird/Mozilla.exe" but when typing browse http://some_url nothing happens Any Idea ? Thanks in advance... -- Best regards, ronaldoff [ronaldoff--free--fr]

 [2/16] from: johnatemps:yaho:o at: 27-Jun-2003 8:42


I have the same problem ! Browse under 1.2.10 is realy strenge... Jtps

 [3/16] from: petr:krenzelok:trz:cz at: 27-Jun-2003 10:09


Johnatemps wrote:
>I have the same problem ! >Browse under 1.2.10 is realy strenge... >Jtps >
I don't know anything about how to set browser path etc., but I think it all depends upon what your OS regards as default browser? I can bet Mozilla is not set that way - you can check the other way - go to any file manager (Explorer, Total Commander), find yourself some locally stored .html file, and press enter. You will see what your OS regards being a default browser - mine is Mozilla, so even 'browser function launches mozilla for me. a hint: start your mozilla, go to edit/preferences/navigator settings and in top right section you will find button called "Set default browser" - do so ... so - my conclusion is, rebol uses some system global setting stored somewhere in registry ... I think that if you are a real "hacker", you can launch File Explorer, go to Tools menu and the last option will show you a dialog box (I just don't know how to correctly translate it from Czech to English) - choose fourth tab - it will show you all Windows file associations - find yourself .htm and .html ... but I think that earlier option (doing so thru Mozilla's setting) will just do it for you ... Cheers, -pekr-

 [4/16] from: bry:itnisk at: 27-Jun-2003 10:54


Here's one answer, although it doesn't necessarily pertain directly to rebol but to windows itself. It seems to me that browse just uses your windows registry settings in every version of Rebol on windows, at least if you haven't set a value for your browser path, I conclude this because when I was doing my stuff with asynchronous pluggable protocols I could browse any I put in the registry. The registry settings for http in my windows 2000 are as follows: Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\http] Source Filter ="{E436EBB6-524F-11CE-9F53-0020AF0BA770}" @="URL:HyperText Transfer Protocol" EditFlags =dword:00000002 URL Protocol ="" [HKEY_CLASSES_ROOT\http\AnimExtensions] . ="dxmasf.dll,150" .asf ="dxmasf.dll,150" .asp ="dxmasf.dll,150" .asx ="dxmasf.dll,150" .nsc ="dxmasf.dll,150" .ra ="dxmasf.dll,150" .ram ="dxmasf.dll,150" .rm ="dxmasf.dll,150" .rmm ="dxmasf.dll,150" .wax ="dxmasf.dll,150" .wm ="dxmasf.dll,150" .wma ="dxmasf.dll,150" .wmv ="dxmasf.dll,150" .wvx ="dxmasf.dll,150" .wmx ="dxmasf.dll,150" [HKEY_CLASSES_ROOT\http\DefaultIcon] @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74, 00,25,\ 00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,75,00,72, 00,\ 6c,00,2e,00,64,00,6c,00,6c,00,2c,00,30,00,00,00 [HKEY_CLASSES_ROOT\http\Extensions] .ASF ="{6B6D0800-9ADA-11d0-A520-00A0D10129C0}" .ASX ="{4B428940-263C-11d1-A520-000000000000}" .ASP ="{4B428940-263C-11d1-A520-000000000000}" .WAX ="{4B428940-263C-11d1-A520-000000000000}" .WM ="{6B6D0800-9ADA-11d0-A520-00A0D10129C0}" .WMA ="{6B6D0800-9ADA-11d0-A520-00A0D10129C0}" .NSC ="{4B428940-263C-11d1-A520-000000000000}" .BECK ="{6B6D0800-9ADA-11d0-A520-00A0D10129C0}" .WVX ="{4B428940-263C-11d1-A520-000000000000}" .WMV ="{6B6D0800-9ADA-11d0-A520-00A0D10129C0}" .IVF ="{C69E8F40-D5C8-11D0-A520-145405C10000}" [HKEY_CLASSES_ROOT\http\shell] [HKEY_CLASSES_ROOT\http\shell\open] [HKEY_CLASSES_ROOT\http\shell\open\command] @="\"C:\\Program Files\\Internet Explorer\\iexplore.exe\" -nohome" [HKEY_CLASSES_ROOT\http\shell\open\ddeexec] @="\"%1\",,-1,0,,,," NoActivateHandler ="" [HKEY_CLASSES_ROOT\http\shell\open\ddeexec\Application] @="IExplore" [HKEY_CLASSES_ROOT\http\shell\open\ddeexec\Topic] @="WWW_OpenURL" as you can see [HKEY_CLASSES_ROOT\http\shell\open\command] is set to internet explorer. This is what sets ie to be the default http handler for windows and I suppose for Rebol browse.

 [5/16] from: atruter:labyrinth:au at: 28-Jun-2003 11:32


set-browser-path "c:\Program Files\Opera7\Opera.exe" works for me (under Win2000). Regards, Ashley

 [6/16] from: antonr:iinet:au at: 28-Jun-2003 13:01


Does that work from the DOS command prompt ? ie. you need to check whether mozilla.exe accepts a url argument on the command line. Anton.

 [7/16] from: ronaldoff:free at: 1-Jul-2003 0:30


Hello Ashley, Saturday, June 28, 2003, 3:32:18 AM, vous avez écrit : AT> set-browser-path "c:\Program Files\Opera7\Opera.exe" works for me (under AT> Win2000). AT> Regards, AT> Ashley This doesn't work (under W98SE): set-browser-path %/E/Program Files/MozillaFirebird/Mozilla.exe browse http://www.google.fr but this WORKS ! set-browser-path "e:\Program Files\MozillaFirebird\Mozilla.exe" browse http://www.google.fr Thanks very much Ashley, you pointed the problem. I still don't understand why the first attempt fails ... -- Best regards, ronaldoff [ronaldoff--free--fr]

 [8/16] from: atruter:labyrinth:au at: 1-Jul-2003 10:12


Hi Ronaldoff,
> I still don't understand why the first attempt fails ... >> help set-browser-path
USAGE: SET-BROWSER-PATH value DESCRIPTION: Path to default web browser. SET-BROWSER-PATH is a native value. ARGUMENTS: value -- The shell call string (Type: any-string) I suspect the call string is passed direct to the OS (Windows in this case) and it does not understand the REBOL file! syntax. ;) Regards, Ashley

 [9/16] from: antonr:iinet:au at: 1-Jul-2003 11:44


I am sure set-browser-path just sets a registry key, and does no path translation. It is a question whether it's intended to be in this rebol. Anton.

 [10/16] from: ingo::2b1::de at: 24-Dec-2003 22:22


Hi Ronaldoff, this is a shot into the blue, but I'd guess that the path from 'set-browser-path is handed down to some operating system level function, without a 'to-local-path conversion beforehand. To me this is a bug, have you sent it to feedback? Ingo ronaldoff <[ronaldoff--free--fr]> schrieb am 01.07.2003, 00:30:20:

 [11/16] from: ronaldoff:free at: 2-Jul-2003 0:05


Hello Anton, Try this, if you dare ! set-browser-path "c:\windows\notepad.exe" browse "c:\temp\test.txt" yes, yes yes ... Tuesday, July 01, 2003, 3:44:11 AM, vous avez écrit : A> I am sure set-browser-path just sets a registry A> key, and does no path translation. A> It is a question whether it's intended to be in this rebol. A> Anton. -- Best regards, ronaldoff [ronaldoff--free--fr]

 [12/16] from: ronaldoff:free at: 2-Jul-2003 0:09


Hello ingo, Tuesday, July 01, 2003, 8:24:01 AM, vous avez écrit : i2d> Hi Ronaldoff, i2d> this is a shot into the blue, but I'd guess that i2d> the path from 'set-browser-path is handed down i2d> to some operating system level function, without i2d> a 'to-local-path conversion beforehand. i2d> To me this is a bug, have you sent it to feedback? i2d> Ingo i2d> ronaldoff <[ronaldoff--free--fr]> schrieb am 01.07.2003, 00:30:20:
>> Hello Ashley, >>
<<quoted lines omitted: 20>>
>> >> I still don't understand why the first attempt fails ...
Not yet. See my last message : I'm exploring the "bug"... -- Best regards, ronaldoff [ronaldoff--free--fr]

 [13/16] from: atruter:labyrinth:au at: 2-Jul-2003 10:05


> set-browser-path "c:\windows\notepad.exe" > browse "c:\temp\test.txt"
Which lets us replace call (and the black cmd box it briefly flashes up) with: call: func [cmd [file!] /arg arg1 [string!]] [ set-browser-path to-string to-local-file cmd browse either arg [arg1][""] ] ;call %/c/winnt/notepad.exe ;call/arg %/c/winnt/notepad.exe "fred.txt" I wonder how long we can rely on this "feature" being present. ;) Regards, Ashley

 [14/16] from: james:mustard at: 2-Jul-2003 14:30


Hi Ashley, At first I thought this was great too - then I had a little think about the possible security implications on a network / trusted domain. Where that lovely ability falls in a crashing heap is security. In a best case scenario a teenage pest writes virii.exe to your local HDD then executes it eliminating your pc from the silicon pool - in a worst case scenario, your business is running IOS applets and some applet gets infected and takes out every machine on the network.. Of course this will only be a real issue to windows users, but still.. Regards, James. On Wed, 2003-07-02 at 12:05, Ashley Truter wrote:

 [15/16] from: nitsch-lists:netcologne at: 2-Jul-2003 10:17


I had problems to use set-browser-path more than a few times. saad :) Volker Am Mittwoch, 2. Juli 2003 02:05 schrieb Ashley Truter:

 [16/16] from: nitsch-lists:netcologne at: 2-Jul-2003 10:31


Am Mittwoch, 2. Juli 2003 04:30 schrieb James Marsden:
> Hi Ashley, > At first I thought this was great too - then I had a little think about
<<quoted lines omitted: 4>>
> worst case scenario, your business is running IOS applets and some > applet gets infected and takes out every machine on the network..
I think with IOS RT sees this a bit relaxed. With IOS all users are invited. And there is a complete history on the server, so the bad scripter can be detected. With Reb its another matter. The 1.2.10 is loudly marked as insecure when downloading. I guess they will fix it like launch: set-browser-path: func[url][alert "disabled"] I hope they will include 'launch and 'set-browser-path in the security-settings
> Of course this will only be a real issue to windows users, but still.. >
Ha! wiping out users home is cruel enough. Current "we are a windows" - desktops ignore easy backups completely AFAIK.
> Regards, > James.
<<quoted lines omitted: 19>>
> > > > =09Ashley
Volker

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted