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 |
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 |
Administrator
|
No problem! BTW let's not depend on NewExternalWebBrowser surviving as the project's name ;)
Cheers,
Sean |
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 <[hidden email]>: Sean P. DeNigris wrote: ~~Jannik Laval~~ |
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 |
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: |
Administrator
|
Yes, that's what I wrapped :) I just added the behavior directly to ZnUrl and handled the platform automatically.
Cheers,
Sean |
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 ~~Jannik Laval~~ |
Administrator
|
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 |
2014-11-08 17:41 GMT+01:00 Sean P. DeNigris <[hidden email]>: jannik laval wrote Yes, there is a lot of different command. I only use xdg-open. Could you give me access to the repository ? Cheers, Jannik
~~Jannik Laval~~ |
Administrator
|
Added user JLaval as contributor
Cheers,
Sean |
Thank you, I added the code. Cheers, Jannik 2014-11-11 22:34 GMT+01:00 Sean P. DeNigris <[hidden email]>: jannik laval wrote ~~Jannik Laval~~ |
Free forum by Nabble | Edit this page |