change of default printer (also fixes STR #1346)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4854
7a7537e8-13f0-0310-91df-
b6672ffda945
cupsdLoadAllPrinters();
cupsdLoadAllClasses();
cupsdLoadRemoteCache();
+ cupsdWritePrintcap();
cupsdCreateCommonData();
*/
cupsdUpdatePrinters();
+ cupsdWritePrintcap();
cupsdLogMessage(CUPSD_LOG_INFO, "Partial reload complete.");
}
*/
if (DefaultPrinter == NULL && Printers != NULL)
- {
DefaultPrinter = (cupsd_printer_t *)cupsArrayFirst(Printers);
- cupsdWritePrintcap();
- }
-
/*
* Do auto-classing if needed...
*/
cupsdProcessImplicitClasses();
+
+ /*
+ * Update the printcap file...
+ */
+
+ cupsdWritePrintcap();
}
cupsdSaveAllPrinters();
}
+ cupsdWritePrintcap();
+
/*
* Return with no errors...
*/
cupsdSaveAllPrinters();
cupsdSaveAllClasses();
+ cupsdWritePrintcap();
+
cupsdLogMessage(CUPSD_LOG_INFO,
"Default destination set to \'%s\' by \'%s\'.", name,
con->username);
if (!ImplicitPrinters)
ImplicitPrinters = cupsArrayNew(compare_printers, NULL);
- /*
- * Write a new /etc/printcap or /var/spool/lp/pstatus file.
- */
-
- cupsdWritePrintcap();
-
/*
* Return the new printer...
*/
*/
if (p == DefaultPrinter)
- {
DefaultPrinter = (cupsd_printer_t *)cupsArrayFirst(Printers);
- cupsdWritePrintcap();
- }
-
/*
* Remove this printer from any classes and send a browse delete message...
*/
cupsdClearString(&p->error_policy);
free(p);
-
- /*
- * Write a new /etc/printcap file...
- */
-
- cupsdWritePrintcap();
}