[Sugar-devel] Sugarizing an application
Tomeu Vizoso
tomeu at sugarlabs.org
Wed Oct 21 07:52:34 EDT 2009
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
More information about the Sugar-devel
mailing list