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&#39;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&amp;l=img515/9710/qproxysettingsrd9.png">http://img515.imageshack.us/content.php?page=done&amp;l=img515/9710/qproxysettingsrd9.png</a><br>
<br>Cheers.<br><br><div class="gmail_quote">2008/6/17 Andreas Pakulat &lt;<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>&gt;:<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>
&gt; Could you give me a little tip of how i could solve this by using QProcess?<br>
&gt; If not much to ask<br>
&gt; I am reading about setEnviroment() but i dont understand exactly which is<br>
&gt; the steps i should follow as starting point.<br>
<br>
</div>Well, lets say you want to start &quot;yourapp&quot; with http_proxy variable set<br>
to <a href="http://somehost:8184" target="_blank">http://somehost:8184</a>. Then you&#39;d just do<br>
<br>
p = QProcess()<br>
env = QProcess.systemEnvironment()<br>
env.append( &quot;http_proxy=<a href="http://somehost:8184" target="_blank">http://somehost:8184</a>&quot; )<br>
p.setEnvironment(env)<br>
p.start( &quot;yourapp&quot; )<br>
<br>
This would start &quot;yourapp&quot; as if you&#39;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&#39;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 &nbsp; &nbsp;<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>