Angrez Singh wrote:
> I would like to add something here.
>
> 1. In the file 'winClicker.rb' and method 'clickJSDialog_NewProcess()'
> myapp = "[EMAIL PROTECTED]/clickJSDialog.rb #{button}
> <mailto:[EMAIL PROTECTED]/clickJSDialog.rb%20#%7Bbutton%7D>"
> winsystem(" start #{myapp}")
>
> Now this thing will not work if user has configured to open the files
> with '.rb' extension with some editor like Notepad, wordpad, gvim etc.
> So what I suggest is to change the myapp variable to include ruby
> interpreter also like this:
> myapp = "ruby [EMAIL PROTECTED]/clickJSDialog.rb
> <mailto:[EMAIL PROTECTED]/clickJSDialog.rb> #{button}"
>
> This will use ruby interpreter to open the file no matter what user
> has configured on his/her machine. I faced this problem during testing
> on my machine.
>
> Similarly, we need to append ruby interpreter in the function
> 'setFileRequesterFileName_newProcess' which is used to set FileName in
> the file_field control.
This sounds rights to me. Better would be to use "rubyw" which does the
same thing as "ruby" but without a console window.
Would you like to make this change yourself or submit a patch?
Bret
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general