Skip to contentSkip to conversation

cups-browsed - What to do if client.conf redirects to remote CUPS

Printing-architecture Till Kamppeter 2 participants 2 messages Aug 5, 2013

lore
Share & tools
lore
#0 lore raw

Hi,

cups-browsed works well browsing printer broadcasts from remote servers and auto-adding local raw queues pointing to these printers as long as CUPS clients are not redirected to remote servers via /etc/cups/client.conf.

If there is such a re-direction, cups-browsed does not make much sense, as it cannot manipulate CUPS queues on a remote server. It can even misbehave, as

https://bugs.launchpad.net/ubuntu/+source/cups-filters/+bug/1207203

shows.

What I would like to do is to make cups-browsed always connecting to the local CUPS daemon, ignoring any client.conf setting. Is this easily possible?

Or should I better simply on the first failed attempt to add or remove a print queue make cups-browsed shutting down and enter a stand-by loop until the cupsServer() output changes?

Till

#1 lore raw

Till,

Quoted 2 lines · Till Kamppeter

...
What I would like to do is to make cups-browsed always connecting to the local CUPS daemon, ignoring any client.conf setting. Is this easily possible?

Sure, don't use cupsServer() to get the default server and don't use CUPS_HTTP_DEFAULT for any http_t * parameters.

Quoted 1 line

Or should I better simply on the first failed attempt to add or remove a print queue make cups-browsed shutting down and enter a stand-by loop until the cupsServer() output changes?

The value of cupsServer() is cached for the life of the application. And while we *do* have a bug tracking a potential change to detect whether the client.conf file(s) have changed, we are also doing our best to move away from static configuration information in order to better function in a mobile world.

_________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair