[ANN]: NewExternalWebBrowser
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.
Nice :) Thanks, Doru On Tue, Nov 4, 2014 at 7:39 PM, Sean P. DeNigris <sean@clipperadams.com> 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.
-- www.tudorgirba.com "Every thing has its own flow"
Tudor Girba-2 wrote
Nice :)... Thanks,
No problem! BTW let's not depend on NewExternalWebBrowser surviving as the project's name ;) ----- 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.
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.
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 <btc@openinworld.com>:
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.
-- ~~Jannik Laval~~ Ãcole des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/
On Nov 6, 2014, at 6:19 AM, jannik laval [via Smalltalk] <ml-node+s1294792n4788709h67@n4.nabble.com> 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: http://forum.world.st/ANN-NewExternalWebBrowser-tp4788403p4788766.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
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 <sean@clipperadams.com> wrote:
On Nov 6, 2014, at 6:19 AM, jannik laval [via Smalltalk] <[hidden email] <http://user/SendEmail.jtp?type=node&node=4788766&i=0>> 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 <http://forum.world.st/ANN-NewExternalWebBrowser-tp4788403p4788766.html>
Sent from the Pharo Smalltalk Users mailing list archive <http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html> at Nabble.com.
-- www.tudorgirba.com "Every thing has its own flow"
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.
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 <sean@clipperadams.com>:
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.
-- ~~Jannik Laval~~ Ãcole des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/
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 -- 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.
2014-11-08 17:41 GMT+01:00 Sean P. DeNigris <sean@clipperadams.com>:
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.
-- ~~Jannik Laval~~ Ãcole des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/
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.
Thank you, I added the code. Cheers, Jannik 2014-11-11 22:34 GMT+01:00 Sean P. DeNigris <sean@clipperadams.com>:
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.
-- ~~Jannik Laval~~ Ãcole des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/
participants (4)
-
Ben Coman -
jannik laval -
Sean P. DeNigris -
Tudor Girba