[ANN]: NewExternalWebBrowser

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

[ANN]: NewExternalWebBrowser

Sean P. DeNigris
Administrator
Not too long ago, someone requested the ability to open a URL in an external browser.

Now that Pharo has NativeBoost, it seems we could implement ExternalWebBrowser much more simply. Here's a first commit for Mac OS X.

Gofer it
        smalltalkhubUser: 'SeanDeNigris' project: 'SeansPlayground';
        package: 'NewExternalWebBrowser';
        load.

'http://google.com' asUrl open.
Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: [ANN]: NewExternalWebBrowser

Tudor Girba-2
Nice :)

Thanks,
Doru

On Tue, Nov 4, 2014 at 7:39 PM, Sean P. DeNigris <[hidden email]> wrote:
Not too long ago, someone requested the ability to open a URL in an external
browser.

Now that Pharo has NativeBoost, it seems we could implement
ExternalWebBrowser much more simply. Here's a first commit for Mac OS X.

Gofer it
        smalltalkhubUser: 'SeanDeNigris' project: 'SeansPlayground';
        package: 'NewExternalWebBrowser';
        load.

'http://google.com' asUrl open.



-----
Cheers,
Sean
--
View this message in context: http://forum.world.st/ANN-NewExternalWebBrowser-tp4788403.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.




--

"Every thing has its own flow"
Reply | Threaded
Open this post in threaded view
|

Re: [ANN]: NewExternalWebBrowser

Sean P. DeNigris
Administrator
Tudor Girba-2 wrote
Nice :)... Thanks,
No problem! BTW let's not depend on NewExternalWebBrowser surviving as the project's name ;)
Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: [ANN]: NewExternalWebBrowser

Ben Coman
Sean P. DeNigris wrote:
> Tudor Girba-2 wrote
>> Nice :)... Thanks,
>
> No problem! BTW let's not depend on NewExternalWebBrowser surviving as the
> project's name ;)

Don't be a newb...    ?

;)


>
>
>
> -----
> Cheers,
> Sean
> --
> View this message in context: http://forum.world.st/ANN-NewExternalWebBrowser-tp4788403p4788461.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>
>


Reply | Threaded
Open this post in threaded view
|

Re: [ANN]: NewExternalWebBrowser

jannik laval
Thank you Sean, I will integrate it in Phratch. Like that, I can remove OSProcess.

Cheers,
Jannik

2014-11-05 9:15 GMT-03:00 Ben Coman <[hidden email]>:
Sean P. DeNigris wrote:
Tudor Girba-2 wrote
Nice :)... Thanks,

No problem! BTW let's not depend on NewExternalWebBrowser surviving as the
project's name ;)

Don't be a newb...    ?


;)





-----
Cheers,
Sean
--
View this message in context: http://forum.world.st/ANN-NewExternalWebBrowser-tp4788403p4788461.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.







--
Reply | Threaded
Open this post in threaded view
|

Re: [ANN]: NewExternalWebBrowser

Sean P. DeNigris
Administrator
On Nov 6, 2014, at 6:19 AM, jannik laval [via Smalltalk] <[hidden email]> wrote:
> Thank you Sean, I will integrate it in Phratch. Like that, I can remove OSProcess.

n.b. I only implemented Mac OS X. I assume it would be trivial to implement in Windows, but I’m not sure of a cross-Gnu+Lunix-flavor url open command. But I guess we could use whatever the original ExternalWebBrowser ultimately called out to...
Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: [ANN]: NewExternalWebBrowser

Tudor Girba-2
Actually, the ability to open a web browser is already present in the Pharo image out of the box through NativeBoost:

NBMacShell open: 'http://pharo.org'
NBWin32Shell shellBrowse: 'http://pharo.org'

Cheers,
Doru



On Thu, Nov 6, 2014 at 6:11 PM, Sean P. DeNigris <[hidden email]> wrote:
On Nov 6, 2014, at 6:19 AM, jannik laval [via Smalltalk] <[hidden email]> wrote:
> Thank you Sean, I will integrate it in Phratch. Like that, I can remove OSProcess.

n.b. I only implemented Mac OS X. I assume it would be trivial to implement in Windows, but I’m not sure of a cross-Gnu+Lunix-flavor url open command. But I guess we could use whatever the original ExternalWebBrowser ultimately called out to...
Cheers,
Sean


View this message in context: Re: [ANN]: NewExternalWebBrowser

Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.



--

"Every thing has its own flow"
Reply | Threaded
Open this post in threaded view
|

Re: [ANN]: NewExternalWebBrowser

Sean P. DeNigris
Administrator
Tudor Girba-2 wrote
Actually, the ability to open a web browser is already present in the Pharo
image out of the box through NativeBoost:

NBMacShell open: 'http://pharo.org'
NBWin32Shell shellBrowse: 'http://pharo.org'
Yes, that's what I wrapped :) I just added the behavior directly to ZnUrl and handled the platform automatically.
Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: [ANN]: NewExternalWebBrowser

jannik laval
It seems that there is no NBUnixShell.
I have implemented the necessary for Ubuntu, in Phratch.

Would you like I push it ?

2014-11-07 14:08 GMT-03:00 Sean P. DeNigris <[hidden email]>:
Tudor Girba-2 wrote
> Actually, the ability to open a web browser is already present in the
> Pharo
> image out of the box through NativeBoost:
>
> NBMacShell open: 'http://pharo.org'
> NBWin32Shell shellBrowse: 'http://pharo.org'

Yes, that's what I wrapped :) I just added the behavior directly to ZnUrl
and handled the platform automatically.



-----
Cheers,
Sean
--
View this message in context: http://forum.world.st/ANN-NewExternalWebBrowser-tp4788403p4788959.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.




--
Reply | Threaded
Open this post in threaded view
|

Re: [ANN]: NewExternalWebBrowser

Sean P. DeNigris
Administrator
jannik laval wrote
It seems that there is no NBUnixShell.
I have implemented the necessary for Ubuntu, in Phratch.

Would you like I push it ?
Absolutely! Is there a command or library that can open a URL that works on all GNU+Linux flavors (bonus if it's pre-loaded)? When I looked into this the first time, I remember there was xdg-open, gnome-open, etc, etc...
Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: [ANN]: NewExternalWebBrowser

jannik laval


2014-11-08 17:41 GMT+01:00 Sean P. DeNigris <[hidden email]>:
jannik laval wrote
> It seems that there is no NBUnixShell.
> I have implemented the necessary for Ubuntu, in Phratch.
>
> Would you like I push it ?

Absolutely! Is there a command or library that can open a URL that works on
all GNU+Linux flavors (bonus if it's pre-loaded)? When I looked into this
the first time, I remember there was xdg-open, gnome-open, etc, etc...

Yes, there is a lot of different command.
I only use xdg-open.

Could you give me access to the repository ?
Cheers,
Jannik
 



-----
Cheers,
Sean
--
View this message in context: http://forum.world.st/ANN-NewExternalWebBrowser-tp4788403p4789174.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.




--
Reply | Threaded
Open this post in threaded view
|

Re: [ANN]: NewExternalWebBrowser

Sean P. DeNigris
Administrator
jannik laval wrote
Could you give me access to the repository ?
Added user JLaval as contributor
Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: [ANN]: NewExternalWebBrowser

jannik laval
Thank you,

I added the code.
Cheers,
Jannik

2014-11-11 22:34 GMT+01:00 Sean P. DeNigris <[hidden email]>:
jannik laval wrote
> Could you give me access to the repository ?

Added user JLaval as contributor



-----
Cheers,
Sean
--
View this message in context: http://forum.world.st/ANN-NewExternalWebBrowser-tp4788403p4789740.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.




--