summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-06-13 19:56:06 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2024-06-17 11:17:54 +0200
commit2cf4cc9d8378b2d5e1419c3f12419f5169da47c1 (patch)
tree3d9a970b0f9917208020a70fedec9308359b4cea
parent2b98d2a4341ee158e3534ca5a59fbb57b1936ade (diff)
when SAL_CUPS_PPD_RETAIN_TMP is set output what the ppd file was saved as
Change-Id: Ib17ec39a5b2691190c5eb1291d1977e1b83eba15 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168800 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> Tested-by: Jenkins
-rw-r--r--vcl/unx/generic/printer/cupsmgr.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/vcl/unx/generic/printer/cupsmgr.cxx b/vcl/unx/generic/printer/cupsmgr.cxx
index 1fab7a172353..c387b7404ca6 100644
--- a/vcl/unx/generic/printer/cupsmgr.cxx
+++ b/vcl/unx/generic/printer/cupsmgr.cxx
@@ -43,6 +43,7 @@
#include <algorithm>
#include <cstddef>
+#include <iostream>
#include <string_view>
using namespace psp;
@@ -541,7 +542,9 @@ const PPDParser* CUPSManager::createCUPSParser( const OUString& rPrinter )
// remove temporary PPD file
if (!getenv("SAL_CUPS_PPD_RETAIN_TMP"))
- unlink( aPPDFile.getStr() );
+ unlink(aPPDFile.getStr());
+ else
+ std::cout << "Saved PPD file as: " << aPPDFile << std::endl;
}
else
SAL_INFO("vcl.unx.print", "cupsGetPPD failed, falling back to generic driver");