[sugar] How to start a binary executable through an activity?
Bert Freudenberg
bert
Mon Oct 22 15:35:50 EDT 2007
Also, you can start binaries directly without the need for any Python
code, by specifying it in the "exec" line of activity.info. Really
depends on what you want to do, you might want to let us know more.
- Bert -
On Oct 22, 2007, at 15:25 , Michael Stone wrote:
> One way to do this is to use python's "subprocess" module
>
> http://docs.python.org/lib/module-subprocess.html
>
> to launch the external binary.
>
> http://docs.python.org/lib/node534.html
>
> gives a variety of examples of this library in action.
>
> Does this answer your question?
>
> Michael
>
> On Mon, Oct 22, 2007 at 07:21:01PM +0200, Teus Benschop wrote:
>> Good evening,
>>
>> Any help on the following problem, probably simple for you, will be
>> appreciated.
>>
>> I seem to be unable to find information on how to start a binary
>> from an
>> activity.
>> There is the Myactivity.activity directory, and that may contain the
>> activity.py file that contains the bulk of the work to be done.
>> I would be glad to hear how this activity.py could start binary
>> /usr/bin/mybinary
>> This binary is supposed to start as soon as the activity icon is
>> clicked.
>>
>> Thank you,
>>
>> Teus Benschop
>>
>> _______________________________________________
>> Sugar mailing list
>> Sugar at lists.laptop.org
>> http://lists.laptop.org/listinfo/sugar
> _______________________________________________
> Sugar mailing list
> Sugar at lists.laptop.org
> http://lists.laptop.org/listinfo/sugar
More information about the Sugar-devel
mailing list