I dont know much of bash, but i think that what is happening is:<div><br></div><div>nxnode.nxnode_func is a dispatcher for operations, among others, --startsession and --addprinter.</div><div><br></div><div>--startsession invokes startsession, which in turn invokes node_start_applications in background</div>
<div><br></div><div>--addprinter invokes cmd_node_addprinter in background</div><div><br></div><div>cmd_node_addprinter set CUPS_SERVER, BUT as it is in background bash forks a new process with its own environment, that do not affect orginal process environment, right?</div>
<div><br></div><div>node_start_applications set CUPS_SERVER, IF directory $session_id/cups exists. (cmd_node_addprinter run in a separate process, asynchronously, and at the time of evaluation that directory does not exists. IF there is the directory, we are in another process and do not affect original, right?)</div>
<div><br></div><div>- this is because i dont have CUPS_SERVER setted. Now, how can i fix it?.</div><div><br></div><div>thanks, Eric</div><div><br></div><div><br><div class="gmail_quote">On Wed, Jul 25, 2012 at 7:35 PM, Eric Bazzana <span dir="ltr"><<a href="mailto:ebazzana@gmail.com" target="_blank">ebazzana@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Alastair, i have ENABLE_CUPS_SERVER_EXPORT = "1" setted. But, as you say, i have not set CUPS_SERVER in environment. There is an export in nxnode.cmd_node_addprinter: CUPS_SERVER=$(node_cupsd_get_socket), and a pair of evaluations in nxnode.node_start_applications. It seems that the one in cmd_node_addprinter is missed, because cmd_node_addprinter is completely executed.<div>
<br></div><div>thanks, Eric<div><div class="h5"><br><br><div class="gmail_quote">On Wed, Jul 25, 2012 at 4:24 PM, Alastair Johnson <span dir="ltr"><<a href="mailto:alastair@solutiontrax.com" target="_blank">alastair@solutiontrax.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On Wednesday 25 July 2012 15:13:46 Eric Bazzana wrote:<br>
> Now i have another problem, CUPS server is listening in a port like<br>
> <a href="http://localhost:11007" target="_blank">http://localhost:11007</a>, and from the admin web page i can manage the<br>
> printer, submit test pages, etc.. But, apps dont see that port, they are<br>
> going to default <a href="http://localhost:631" target="_blank">http://localhost:631</a>. What is what i have to change to<br>
> make it work? is there some nx parameter? or some script?<br>
<br>
</div>The config parameter is:<br>
ENABLE_CUPS_SERVER_EXPORT = "1"<br>
I think that's the default though, so if you don't have environemnt variable<br>
CUPS_SERVER set correctly there's probably a bug in the logic for setting it.<br>
<div><div>________________________________________________________________<br>
Were you helped on this list with your FreeNX problem?<br>
Then please write up the solution in the FreeNX Wiki/FAQ:<br>
<br>
<a href="http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ" target="_blank">http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ</a><br>
<br>
Don't forget to check the NX Knowledge Base:<br>
<a href="http://www.nomachine.com/kb/" target="_blank">http://www.nomachine.com/kb/</a><br>
<br>
________________________________________________________________<br>
FreeNX-kNX mailing list --- <a href="mailto:FreeNX-kNX@kde.org" target="_blank">FreeNX-kNX@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/freenx-knx" target="_blank">https://mail.kde.org/mailman/listinfo/freenx-knx</a><br>
________________________________________________________________<br>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br></div>