[ANN] OS Project with initial support for Ubuntu and Unix

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

[ANN] OS Project with initial support for Ubuntu and Unix

Torsten Bergmann
Hi,

beside the existing "OS-Windows" support for Windows operating system
the "Pharo OS project" (http://smalltalkhub.com/#!/~OS) now also has
new subprojects for "OS-Unix" and "OS-Linux-Ubuntu" with some initial
support for these native platforms as well.

You can load it from the config browser in Pharo 4.0. I guess the
attached screenshot will explain it all...

Bye
T.

os_ubuntu.png (200K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Pharo-users] [ANN] OS Project with initial support for Ubuntu and Unix

Damien Cassou
that is really great news, thank you very much. Do you plan a common
interface to manipulate OSes polymorphically? This could include:

- opening an external application
- sending a file to the trash
- ...

Thanks again!



On Fri, Jan 9, 2015 at 11:27 AM, Torsten Bergmann <[hidden email]> wrote:

> Hi,
>
> beside the existing "OS-Windows" support for Windows operating system
> the "Pharo OS project" (http://smalltalkhub.com/#!/~OS) now also has
> new subprojects for "OS-Unix" and "OS-Linux-Ubuntu" with some initial
> support for these native platforms as well.
>
> You can load it from the config browser in Pharo 4.0. I guess the
> attached screenshot will explain it all...
>
> Bye
> T.



--
Damien Cassou
http://damiencassou.seasidehosting.st

"Success is the ability to go from one failure to another without
losing enthusiasm."
Winston Churchill

Reply | Threaded
Open this post in threaded view
|

Re: [Pharo-users] [ANN] OS Project with initial support for Ubuntu and Unix

Torsten Bergmann
Damien wrote
> that is really great news, thank you very much.

You should thank Igor as he invented NB to make this possible
and convinced me that it is not a good idea to pollute the NB package
too much with platform specific API wrapping. So NB should be reduced to the FFI part
and anything other could be loaded on top.

> Do you plan a common
> interface to manipulate OSes polymorphically? This could include:
>
> - opening an external application
> - sending a file to the trash
> - ...

Yes - that is the (long term) goal. Currently I wrap what I find, need or learn about
but try to keep it uniform. Later a common layer could/should sit on top
calling the underlying loaded platform package.

At least the "OS-XXX-Core" package should provide the minimum basic
facilities like opening a browser, run a new process or a deleting files, ...

You can load "OSWindows" and "OSOSX" additionally as well from the config browser
and compare them. They have the same package structure and some
classes are equally created.

> Thanks again!

As ever anybody is invited to help. I can not do this for all platforms
or one has to buy me a mac ;)

Thx
T.

Reply | Threaded
Open this post in threaded view
|

Re: [Pharo-users] [ANN] OS Project with initial support for Ubuntu and Unix

kilon.alios
what are the goals for OSX ?
is there any documentation ? 

On Fri, Jan 9, 2015 at 6:23 PM, Torsten Bergmann <[hidden email]> wrote:
Damien wrote
> that is really great news, thank you very much.

You should thank Igor as he invented NB to make this possible
and convinced me that it is not a good idea to pollute the NB package
too much with platform specific API wrapping. So NB should be reduced to the FFI part
and anything other could be loaded on top.

> Do you plan a common
> interface to manipulate OSes polymorphically? This could include:
>
> - opening an external application
> - sending a file to the trash
> - ...

Yes - that is the (long term) goal. Currently I wrap what I find, need or learn about
but try to keep it uniform. Later a common layer could/should sit on top
calling the underlying loaded platform package.

At least the "OS-XXX-Core" package should provide the minimum basic
facilities like opening a browser, run a new process or a deleting files, ...

You can load "OSWindows" and "OSOSX" additionally as well from the config browser
and compare them. They have the same package structure and some
classes are equally created.

> Thanks again!

As ever anybody is invited to help. I can not do this for all platforms
or one has to buy me a mac ;)

Thx
T.


Reply | Threaded
Open this post in threaded view
|

Re: [Pharo-users] [ANN] OS Project with initial support for Ubuntu and Unix

Torsten Bergmann
In reply to this post by Torsten Bergmann
> i can't get it to work.
> whatever i try to load, pharo just hangs when i try to use one of the linux
> menu entries.

Are you sure you run the latest ubuntu,  the latest 4.0 image and the latest Pharo
virtual machine? Did you follow the PPA installation guide on: http://pharo.org/download?

In any other case the debugger is your friend. Step through the methods
tell us where exactly it hangs (which call with with parameters).

Thx
T.

Reply | Threaded
Open this post in threaded view
|

Re: [Pharo-users] [ANN] OS Project with initial support for Ubuntu and Unix

Torsten Bergmann
> i am not running ubuntu at all.

and you wonder why an ubuntu specific project is not working - funny ;)

> pharo4 is a few weeks old, i'll update that.
>
> i see no reason why opening a terminal should be ubuntu specific. in any case
> though, it should just fail and not hang.

Check class side methods UbuntuShell.

It only calls "gnome-terminal" which might not be available.
 
Bye
T