+ CUPS printer:
+ Select a host printer to generate the matching lp command.
+
+
+ $cups_select
+
+
+EOF
+ }
print <
Unix printing command:
-
+
+ Example for CUPS: /usr/bin/lp -d printer -
diff --git a/smart.conf.cmake b/smart.conf.cmake
index 10f7915..b0d5371 100644
--- a/smart.conf.cmake
+++ b/smart.conf.cmake
@@ -79,6 +79,23 @@ $smart_systemctl_path = '@SYSTEMCTL_EXECUTABLE@';
# Uncomment and adjust only if a non-standard location must be used.
# $smart_perl_path = '@MARS_NWE_INSTALL_FULL_LIBEXECDIR@/smart';
+# ------------------------------------------------------------
+# Host printer / CUPS utility integration
+# ------------------------------------------------------------
+
+# Enable CUPS host-printer discovery in the SMArT queue UI.
+# This value is generated from cmake/modules/cupsutils.cmake.
+# 1 = enabled, 0 = disabled
+$smart_cups_enable = '@SMART_CUPS_ENABLE@';
+
+# lpstat executable used to discover local CUPS printers for the queue UI.
+$smart_cups_lpstat_path = '@CUPS_LPSTAT_EXECUTABLE@';
+
+# Command template used when SMArT creates a print queue from a CUPS printer.
+# %p is replaced with the sanitized CUPS printer name.
+# The trailing '-' makes lp read the print job from stdin.
+$smart_cups_print_command_template = '@CUPS_LP_EXECUTABLE@ -d %p -';
+
# ------------------------------------------------------------
# nwwebui listener settings
# ------------------------------------------------------------