[Sugar-devel] Sugarizing an application

Daniel Castelo dcastelo.sugarlabs at gmail.com
Wed Oct 21 07:50:19 EDT 2009


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?

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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.sugarlabs.org/archive/sugar-devel/attachments/20091021/d92bc4b5/attachment-0001.htm 


More information about the Sugar-devel mailing list