[Sugar-devel] Sugarizing an application

Daniel Castelo dcastelo.sugarlabs at gmail.com
Thu Nov 12 13:16:07 EST 2009


In a short term we are thinking in develop an activity to interact with
wwdial. In the future we are planning to test Sugar 0.8x and Network Manager
0.7, and change our activity to interact with networkmanager. We should
investigate the way to interact with networkmanager (a set of APIs or
something like that).

Regards.
Daniel

On Fri, Nov 6, 2009 at 11:03 AM, Tomeu Vizoso <tomeu at sugarlabs.org> wrote:

> On Thu, Nov 5, 2009 at 16:51, Daniel Castelo
> <dcastelo.sugarlabs at gmail.com> wrote:
> > I forgot to say you something important: !!!  thanks for your help!!!
>
> Welcome, how did you got this working?
>
> Thanks,
>
> Tomeu
>
> > On Mon, Oct 26, 2009 at 5:44 PM, Dan Williams <dcbw at redhat.com> wrote:
> >>
> >> On Sun, 2009-10-25 at 09:39 +0100, Tomeu Vizoso wrote:
> >> > On Wed, Oct 21, 2009 at 21:07, Dan Williams <dcbw at redhat.com> wrote:
> >> > > On Wed, 2009-10-21 at 13:46 +0100, Tomeu Vizoso wrote:
> >> > >> On Wed, Oct 21, 2009 at 13:41, Daniel Castelo
> >> > >> <dcastelo.sugarlabs at gmail.com> wrote:
> >> > >> > Sorry, just a distraction.
> >> > >> > Is the image that we use in Uruguay, and doesn't have the root
> >> > >> > access
> >> > >> > available.
> >> > >> > Network manager supports connections with a modem 3g?
> >> > >>
> >> > >> Current versions of NetworkManager do, but if it's the image now
> used
> >> > >> in Uruguay (based in Fedora 9), then it may be too old.
> >> > >
> >> > > What version of NM ships on those?  NM 0.6x like we originally
> shipped
> >> > > in the images in 2007/2008?  Or were Simon and Daniel able to update
> >> > > them to NM 0.7.x?
> >> >
> >> > This is F9 with NM 0.6.5-0.12.svn3246.olpc3 . I think NM 0.7 support
> >> > was added to Sugar 0.84 which hasn't gone into an official OLPC image
> >> > yet.
> >>
> >> Ok, only NM 0.7.x and later support 3G.  So it looks like they will have
> >> to wait for an official image, or install the NM 0.7.x ones by hand.
> >>
> >> Dan
> >>
> >> > Regards,
> >> >
> >> > Tomeu
> >> >
> >> > > Dan
> >> > >
> >> > >> I'm CC'ing Dan Williams who is the main author of NM in case he can
> >> > >> suggest you a way forward.
> >> > >>
> >> > >> Regards and good luck,
> >> > >>
> >> > >> Tomeu
> >> > >>
> >> > >> > Thanks for your help
> >> > >> >
> >> > >> >
> >> > >> > On Wed, Oct 21, 2009 at 10:26 AM, Tomeu Vizoso
> >> > >> > <tomeu at sugarlabs.org> wrote:
> >> > >> >>
> >> > >> >> On Wed, Oct 21, 2009 at 13:22, Daniel Castelo
> >> > >> >> <dcastelo.sugarlabs at gmail.com> wrote:
> >> > >> >> > OLPC release 9 (Joyride).  is enough?
> >> > >> >>
> >> > >> >> Sorry, not sure to what image that may correspond. Can you tell
> me
> >> > >> >> how
> >> > >> >> that image can be acquired? Depending on the configuration, root
> >> > >> >> access may be available or not.
> >> > >> >>
> >> > >> >> But James' suggestion is good, if you can do it via
> >> > >> >> NetworkManager,
> >> > >> >> then you can work around the root limitation.
> >> > >> >>
> >> > >> >> Also, please don't drop the mailing list from the email
> recipients
> >> > >> >> (do
> >> > >> >> "reply all" instead of just replying to me).
> >> > >> >>
> >> > >> >> Regards,
> >> > >> >>
> >> > >> >> Tomeu
> >> > >> >>
> >> > >> >> > On Wed, Oct 21, 2009 at 10:05 AM, Tomeu Vizoso
> >> > >> >> > <tomeu at sugarlabs.org>
> >> > >> >> > wrote:
> >> > >> >> >>
> >> > >> >> >> On Wed, Oct 21, 2009 at 13:01, Daniel Castelo
> >> > >> >> >> <dcastelo.sugarlabs at gmail.com> wrote:
> >> > >> >> >> > 0.82 of sugar with kernel 2.6.25-20090223.olpc
> >> > >> >> >>
> >> > >> >> >> A distribution is much more than sugar and a kernel, can you
> be
> >> > >> >> >> more
> >> > >> >> >> specific?
> >> > >> >> >>
> >> > >> >> >> Thanks,
> >> > >> >> >>
> >> > >> >> >> Tomeu
> >> > >> >> >>
> >> > >> >> >> >
> >> > >> >> >> > On Wed, Oct 21, 2009 at 9:52 AM, Tomeu Vizoso
> >> > >> >> >> > <tomeu at sugarlabs.org>
> >> > >> >> >> > wrote:
> >> > >> >> >> >>
> >> > >> >> >> >> On Wed, Oct 21, 2009 at 12:50, Daniel Castelo
> >> > >> >> >> >> <dcastelo.sugarlabs at gmail.com> wrote:
> >> > >> >> >> >> > First, I tried to sugarized gnome-ppp (made with  C and
> >> > >> >> >> >> > gtk) and
> >> > >> >> >> >> > execute
> >> > >> >> >> >> > it
> >> > >> >> >> >> > as an activity. But it doesn't looks fine. Now i am
> >> > >> >> >> >> > thinking in
> >> > >> >> >> >> > rewrite
> >> > >> >> >> >> > gnome-ppp in python like "native" Activity. The problem
> >> > >> >> >> >> > that i
> >> > >> >> >> >> > have,
> >> > >> >> >> >> > is
> >> > >> >> >> >> > that
> >> > >> >> >> >> > I need to execute wvdial as root and write the
> resolv.conf
> >> > >> >> >> >> > file
> >> > >> >> >> >> > with
> >> > >> >> >> >> > the
> >> > >> >> >> >> > dns
> >> > >> >> >> >> > configuration. How can I run things with root
> privileges?
> >> > >> >> >> >>
> >> > >> >> >> >> Well, this has nothing to do with Sugar but with the
> >> > >> >> >> >> underlying OS.
> >> > >> >> >> >> Which distribution are you using?
> >> > >> >> >> >>
> >> > >> >> >> >> Regards,
> >> > >> >> >> >>
> >> > >> >> >> >> Tomeu
> >> > >> >> >> >>
> >> > >> >> >> >> > Thanks.
> >> > >> >> >> >> >
> >> > >> >> >> >> > On Thu, Oct 15, 2009 at 7:34 AM, Tomeu Vizoso
> >> > >> >> >> >> > <tomeu at sugarlabs.org>
> >> > >> >> >> >> > wrote:
> >> > >> >> >> >> >>
> >> > >> >> >> >> >> On Wed, Oct 14, 2009 at 13:33, Daniel Castelo
> >> > >> >> >> >> >> <dcastelo.sugarlabs at gmail.com> wrote:
> >> > >> >> >> >> >> > I am testing the client gnome-ppp to connect the Xo
> >> > >> >> >> >> >> > with a
> >> > >> >> >> >> >> > modem
> >> > >> >> >> >> >> > 3G.
> >> > >> >> >> >> >> > When I
> >> > >> >> >> >> >> > execute the client using consolehelper and pam (or
> the
> >> > >> >> >> >> >> > root
> >> > >> >> >> >> >> > user)
> >> > >> >> >> >> >> > the
> >> > >> >> >> >> >> > application looks without the sugar theme. When I
> >> > >> >> >> >> >> > execute the
> >> > >> >> >> >> >> > binary
> >> > >> >> >> >> >> > file of
> >> > >> >> >> >> >> > the client (/usr/sbin/gnome-ppp) it looks "fine".
> >> > >> >> >> >> >>
> >> > >> >> >> >> >> And you want to create a Sugar activity with the
> >> > >> >> >> >> >> functionality in
> >> > >> >> >> >> >> gnome-ppp ? Or what is the final goal?
> >> > >> >> >> >> >>
> >> > >> >> >> >> >> Regards,
> >> > >> >> >> >> >>
> >> > >> >> >> >> >> Tomeu
> >> > >> >> >> >> >>
> >> > >> >> >> >> >> > Thanks
> >> > >> >> >> >> >> >
> >> > >> >> >> >> >> > On Wed, Oct 14, 2009 at 9:57 AM, Tomeu Vizoso
> >> > >> >> >> >> >> > <tomeu at sugarlabs.org>
> >> > >> >> >> >> >> > wrote:
> >> > >> >> >> >> >> >>
> >> > >> >> >> >> >> >> On Wed, Oct 14, 2009 at 12:54, Daniel Castelo
> >> > >> >> >> >> >> >> <dcastelo.sugarlabs at gmail.com> wrote:
> >> > >> >> >> >> >> >> > Hi. When I execute an application written in C and
> >> > >> >> >> >> >> >> > gtk with
> >> > >> >> >> >> >> >> > a
> >> > >> >> >> >> >> >> > "normal
> >> > >> >> >> >> >> >> > user"
> >> > >> >> >> >> >> >> > (not the root user)  it looks fine, I mean
> sugarized
> >> > >> >> >> >> >> >> > (for
> >> > >> >> >> >> >> >> > example
> >> > >> >> >> >> >> >> > with
> >> > >> >> >> >> >> >> > rounded entry text). But if i execute it with the
> >> > >> >> >> >> >> >> > root user
> >> > >> >> >> >> >> >> > it
> >> > >> >> >> >> >> >> > looks
> >> > >> >> >> >> >> >> > without
> >> > >> >> >> >> >> >> > the sugar theme. On what it depends?
> >> > >> >> >> >> >> >>
> >> > >> >> >> >> >> >> The Gtk+ theme is set per user, so if you run as
> root
> >> > >> >> >> >> >> >> you are
> >> > >> >> >> >> >> >> running
> >> > >> >> >> >> >> >> it in a very different environment. If this is a
> >> > >> >> >> >> >> >> problem for
> >> > >> >> >> >> >> >> you,
> >> > >> >> >> >> >> >> then
> >> > >> >> >> >> >> >> we may be able to help if you explain what you are
> >> > >> >> >> >> >> >> trying to
> >> > >> >> >> >> >> >> do.
> >> > >> >> >> >> >> >>
> >> > >> >> >> >> >> >> Regards,
> >> > >> >> >> >> >> >>
> >> > >> >> >> >> >> >> Tomeu
> >> > >> >> >> >> >> >>
> >> > >> >> >> >> >> >> --
> >> > >> >> >> >> >> >> «Sugar Labs is anyone who participates in improving
> >> > >> >> >> >> >> >> and using
> >> > >> >> >> >> >> >> Sugar.
> >> > >> >> >> >> >> >> What Sugar Labs does is determined by the
> >> > >> >> >> >> >> >> participants.» -
> >> > >> >> >> >> >> >> David
> >> > >> >> >> >> >> >> Farning
> >> > >> >> >> >> >> >
> >> > >> >> >> >> >> >
> >> > >> >> >> >> >>
> >> > >> >> >> >> >>
> >> > >> >> >> >> >>
> >> > >> >> >> >> >> --
> >> > >> >> >> >> >> «Sugar Labs is anyone who participates in improving and
> >> > >> >> >> >> >> using
> >> > >> >> >> >> >> Sugar.
> >> > >> >> >> >> >> What Sugar Labs does is determined by the
> participants.»
> >> > >> >> >> >> >> - David
> >> > >> >> >> >> >> Farning
> >> > >> >> >> >> >
> >> > >> >> >> >> >
> >> > >> >> >> >>
> >> > >> >> >> >>
> >> > >> >> >> >>
> >> > >> >> >> >> --
> >> > >> >> >> >> «Sugar Labs is anyone who participates in improving and
> >> > >> >> >> >> using Sugar.
> >> > >> >> >> >> What Sugar Labs does is determined by the participants.» -
> >> > >> >> >> >> David
> >> > >> >> >> >> Farning
> >> > >> >> >> >
> >> > >> >> >> >
> >> > >> >> >>
> >> > >> >> >>
> >> > >> >> >>
> >> > >> >> >> --
> >> > >> >> >> «Sugar Labs is anyone who participates in improving and using
> >> > >> >> >> Sugar.
> >> > >> >> >> What Sugar Labs does is determined by the participants.» -
> >> > >> >> >> David
> >> > >> >> >> Farning
> >> > >> >> >
> >> > >> >> >
> >> > >> >>
> >> > >> >>
> >> > >> >>
> >> > >> >> --
> >> > >> >> «Sugar Labs is anyone who participates in improving and using
> >> > >> >> Sugar.
> >> > >> >> What Sugar Labs does is determined by the participants.» - David
> >> > >> >> Farning
> >> > >> >
> >> > >> >
> >> > >>
> >> > >>
> >> > >>
> >> > >
> >> > >
> >> >
> >> >
> >> >
> >>
> >
> >
>
>
>
> --
> «Sugar Labs is anyone who participates in improving and using Sugar.
> What Sugar Labs does is determined by the participants.» - David
> Farning
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.sugarlabs.org/archive/sugar-devel/attachments/20091112/5fe30596/attachment-0001.htm 


More information about the Sugar-devel mailing list