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?<br>
<br>Thanks.<br><br><div class="gmail_quote">On Thu, Oct 15, 2009 at 7:34 AM, Tomeu Vizoso <span dir="ltr"><<a href="mailto:tomeu@sugarlabs.org">tomeu@sugarlabs.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Wed, Oct 14, 2009 at 13:33, Daniel Castelo<br>
<div class="im"><<a href="mailto:dcastelo.sugarlabs@gmail.com">dcastelo.sugarlabs@gmail.com</a>> wrote:<br>
</div><div class="im">> I am testing the client gnome-ppp to connect the Xo with a modem 3G. When I<br>
> execute the client using consolehelper and pam (or the root user) the<br>
> application looks without the sugar theme. When I execute the binary file of<br>
> the client (/usr/sbin/gnome-ppp) it looks "fine".<br>
<br>
</div>And you want to create a Sugar activity with the functionality in<br>
gnome-ppp ? Or what is the final goal?<br>
<br>
Regards,<br>
<font color="#888888"><br>
Tomeu<br>
</font><div class="im"><br>
> Thanks<br>
><br>
> On Wed, Oct 14, 2009 at 9:57 AM, Tomeu Vizoso <<a href="mailto:tomeu@sugarlabs.org">tomeu@sugarlabs.org</a>> wrote:<br>
>><br>
>> On Wed, Oct 14, 2009 at 12:54, Daniel Castelo<br>
>> <<a href="mailto:dcastelo.sugarlabs@gmail.com">dcastelo.sugarlabs@gmail.com</a>> wrote:<br>
>> > Hi. When I execute an application written in C and gtk with a "normal<br>
>> > user"<br>
>> > (not the root user) it looks fine, I mean sugarized (for example with<br>
>> > rounded entry text). But if i execute it with the root user it looks<br>
>> > without<br>
>> > the sugar theme. On what it depends?<br>
>><br>
>> The Gtk+ theme is set per user, so if you run as root you are running<br>
>> it in a very different environment. If this is a problem for you, then<br>
>> we may be able to help if you explain what you are trying to do.<br>
>><br>
>> Regards,<br>
>><br>
>> Tomeu<br>
>><br>
>> --<br>
>> «Sugar Labs is anyone who participates in improving and using Sugar.<br>
>> What Sugar Labs does is determined by the participants.» - David<br>
>> Farning<br>
><br>
><br>
<br>
<br>
<br>
</div>--<br>
<div><div></div><div class="h5">«Sugar Labs is anyone who participates in improving and using Sugar.<br>
What Sugar Labs does is determined by the participants.» - David<br>
Farning<br>
</div></div></blockquote></div><br>