vcl/unx/generic/printer/cupsmgr.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 2cf4cc9d8378b2d5e1419c3f12419f5169da47c1
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Thu Jun 13 19:56:06 2024 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Mon Jun 17 11:17:54 2024 +0200

    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 <xiscofa...@libreoffice.org>
    Tested-by: Jenkins

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");

Reply via email to