[Pharo-project] External Browser
I am just testing this package (installed with the metacello configuration) under Ubuntu 10.04, so far this method returns false: ExternalWebBrowserUnix suitsPlatform and particularly ExternalWebBrowserUnix isCLibAvailable returns false -- Education 0.2 -- http://blog.ofset.org/hilaire
Waht I meant is External Web Browser does not seem to work with Pharo1.2/Ubuntu 10.4. Or could it be related to the VM ? Hilaire Le 11/02/2011 16:41, Hilaire Fernandes a écrit :
I am just testing this package (installed with the metacello configuration) under Ubuntu 10.04, so far this method returns false:
ExternalWebBrowserUnix suitsPlatform
and particularly
ExternalWebBrowserUnix isCLibAvailable returns false
-- Education 0.2 -- http://blog.ofset.org/hilaire
I will have a look at it 2011/2/12 Hilaire Fernandes <hilaire.fernandes@gmail.com>
Waht I meant is External Web Browser does not seem to work with Pharo1.2/Ubuntu 10.4. Or could it be related to the VM ?
Hilaire
Le 11/02/2011 16:41, Hilaire Fernandes a écrit :
I am just testing this package (installed with the metacello configuration) under Ubuntu 10.04, so far this method returns false:
ExternalWebBrowserUnix suitsPlatform
and particularly
ExternalWebBrowserUnix isCLibAvailable returns false
-- Education 0.2 -- http://blog.ofset.org/hilaire
Hello Alexander, Did you get a chance to take a look? Hilaire Le 12/02/2011 11:19, Alexander LazareviÄ a écrit :
I will have a look at it
2011/2/12 Hilaire Fernandes <hilaire.fernandes@gmail.com <mailto:hilaire.fernandes@gmail.com>>
Waht I meant is External Web Browser does not seem to work with Pharo1.2/Ubuntu 10.4. Or could it be related to the VM ?
Hilaire
Le 11/02/2011 16:41, Hilaire Fernandes a écrit : > I am just testing this package (installed with the metacello > configuration) under Ubuntu 10.04, so far this method returns false: > > ExternalWebBrowserUnix suitsPlatform > > and particularly > > ExternalWebBrowserUnix isCLibAvailable returns false >
-- Education 0.2 -- http://blog.ofset.org/hilaire
-- Education 0.2 -- http://blog.ofset.org/hilaire
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
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
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
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
On 14/02/11 3:29 PM, Hilaire Fernandes wrote:
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.
Here's a suggestion. 1. In your shell terminal, do "env | sort > /tmp/env.shell" 2. Tweak your Smalltalk code to do "env | sort > /tmp/env.smalltalk" See if the differences, if any, gives you any ideas about what's wrong. You could also try to run a shell, and set up the environment to be exactly the same as you found in env.smalltalk, then run your command, and see if it still works in that environment. HTH
Le 15/02/2011 03:50, Yanni Chiu a écrit :
1. In your shell terminal, do "env | sort > /tmp/env.shell" 2. Tweak your Smalltalk code to do "env | sort > /tmp/env.smalltalk"
See if the differences, if any, gives you any ideas about what's wrong.
So far I can't see important differences with diff
You could also try to run a shell, and set up the environment to be exactly the same as you found in env.smalltalk, then run your command,
Do you know how to do that ? Thanks Hilaire -- Education 0.2 -- http://blog.ofset.org/hilaire
I have tried this morning in a recent Mac OSX in the teacher room, and external borwser does not work either, it seems to depend on AppleScript and want to load something from SqueakMap. I am giving up on that, because I need something working out of the box, without installation from the user. Hilaire Le 15/02/2011 20:43, Hilaire Fernandes a écrit :
Le 15/02/2011 03:50, Yanni Chiu a écrit :
1. In your shell terminal, do "env | sort > /tmp/env.shell" 2. Tweak your Smalltalk code to do "env | sort > /tmp/env.smalltalk"
See if the differences, if any, gives you any ideas about what's wrong.
So far I can't see important differences with diff
You could also try to run a shell, and set up the environment to be exactly the same as you found in env.smalltalk, then run your command,
Do you know how to do that ?
Thanks
Hilaire
-- Education 0.2 -- http://blog.ofset.org/hilaire
participants (3)
-
Alexander LazareviÄ -
Hilaire Fernandes -
Yanni Chiu