[Pharo-project] External Browser

Hilaire Fernandes hilaire.fernandes at gmail.com
Mon Feb 14 21:29:31 CET 2011


The executed command is  xdg-open  "http://www.ofset.org/drgeo"
Strangely, this command works fine from a shell terminal, but not when
interpreted from the Smalltalk system command.

Hilaire

See, the first 3 processes come from the command interpreted from the
shell, the last 3 from the command started from Smalltalk.

>  2943 pts/0    S      0:00 /bin/sh /usr/lib/firefox-3.6.13/firefox http://www.ofset.org/drgeo
>  2949 pts/0    S      0:00 /bin/sh /usr/lib/firefox-3.6.13/run-mozilla.sh /usr/lib/firefox-3.6.13/firefox-bin http://www.ofset.org/drgeo
>  2953 pts/0    Sl     0:02 /usr/lib/firefox-3.6.13/firefox-bin http://www.ofset.org/drgeo
>  2982 ?        S      0:00 /bin/sh /usr/lib/firefox-3.6.13/firefox http://www.ofset.org/drgeo
>  2988 ?        S      0:00 /bin/sh /usr/lib/firefox-3.6.13/run-mozilla.sh /usr/lib/firefox-3.6.13/firefox-bin http://www.ofset.org/drgeo
>  2992 ?        S      0:00 /usr/lib/firefox-3.6.13/firefox-bin http://www.ofset.org/drgeo


Le 14/02/2011 19:19, Hilaire Fernandes a écrit :
> Now
> ExternalWebBrowserUnix isCLibAvailable
> 
> return true
> 
> 
> But still this does not work:
> 
> ExternalWebBrowser openOnUrl: 'http://www.ofset.org'
> 
> However in the shell, I can see:
> 
> /usr/bin/gnome-open
> /bin/open
> /usr/bin/firefox
> /usr/bin/xdg-open
> 
> Strange
> 
> Le 14/02/2011 19:06, Hilaire Fernandes a écrit :
>> VM is Squeak-3.11.3.2135-pharo-gnuified-src
>>
>> Image is Pharo 1.2
>>
>>
>> Nah, looks like my VM got problem, I tried with another one, work there now
>>
>> Thanks
>>
>> Hilaire
>>
>> Le 14/02/2011 18:51, Alexander Lazarević a écrit :
>>> It works on my setup (upcoming ubuntu 11.04).
>>> What image, VM are you using?
>>>
>>> Alex
>>>
>>> Image
>>> -----
>>> /home/laza/Desktop/Squeak 4.2
>>> All-in-One.app/Contents/Resources/Squeak4.2-10966.image
>>> Squeak4.2
>>> latest update: #11018
>>> Current Change Set: Unnamed1
>>>
>>> Virtual Machine
>>> ---------------
>>> /home/laza/Desktop/Squeak 4.2
>>> All-in-One.app/Contents/Linux-i686/lib/squeak/4.4.7-2357/squeakvm
>>> Squeak4.1 of 17 April 2010 [latest update: #9957]
>>> Unix built on Jan 23 2011 18:17:32 Compiler: 4.3.2
>>> platform sources revision 2357
>>> VMMaker versionString 4.4.7
>>>
>>> Operating System/Hardware
>>> -------------------------
>>> unix linux i686
>>
>>
> 
> 


-- 
Education 0.2 -- http://blog.ofset.org/hilaire





More information about the Pharo-project mailing list