Ok Thanks, this is a start. Now is more clear.<br>I will do some test tonite.<br><br>The idea is, an application (small) to set the global enviroment proxy (as we could do in bash with export bla bla:8080) but with a GUI, which i've added XML support and a systray.<br>
This is the actual look to have an idea: <a href="http://img515.imageshack.us/content.php?page=done&l=img515/9710/qproxysettingsrd9.png">http://img515.imageshack.us/content.php?page=done&l=img515/9710/qproxysettingsrd9.png</a><br>
<br>Cheers.<br><br><div class="gmail_quote">2008/6/17 Andreas Pakulat <<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On 17.06.08 18:57:51, Gustavo A. Díaz wrote:<br>
> Could you give me a little tip of how i could solve this by using QProcess?<br>
> If not much to ask<br>
> I am reading about setEnviroment() but i dont understand exactly which is<br>
> the steps i should follow as starting point.<br>
<br>
</div>Well, lets say you want to start "yourapp" with http_proxy variable set<br>
to <a href="http://somehost:8184" target="_blank">http://somehost:8184</a>. Then you'd just do<br>
<br>
p = QProcess()<br>
env = QProcess.systemEnvironment()<br>
env.append( "http_proxy=<a href="http://somehost:8184" target="_blank">http://somehost:8184</a>" )<br>
p.setEnvironment(env)<br>
p.start( "yourapp" )<br>
<br>
This would start "yourapp" as if you'd have done the following in a<br>
shell:<br>
<br>
export http_proxy=<a href="http://somehost:8184" target="_blank">http://somehost:8184</a><br>
yourapp<br>
<br>
As I said before you can only change the environment of processes you<br>
start from your code, you can't influence environment settings of<br>
already running processes.<br>
<br>
If you still have problems, please be more precise whats not working and<br>
show some code.<br>
<br>
Andreas<br>
<font color="#888888"><br>
--<br>
You will probably marry after a very brief courtship.<br>
</font><div><div></div><div class="Wj3C7c">_______________________________________________<br>
PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Gustavo A. Díaz<br>GDNet Projects<br><a href="http://www.gdnet.com.ar">www.gdnet.com.ar</a>