From e96242f8ed08006e3828295ab588e658c495d4d1 Mon Sep 17 00:00:00 2001 From: Rod Yager Date: Mon, 16 Jan 2023 07:27:11 +1100 Subject: [PATCH] Version 2.0.3 Skip opening Utility app if installed from command line. Fixes Issue #26 --- PDFWriter.xcodeproj/project.pbxproj | 4 ++-- README.md | 2 +- build/postinstall | 4 +++- pdfwriter/pdfwriter.h | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/PDFWriter.xcodeproj/project.pbxproj b/PDFWriter.xcodeproj/project.pbxproj index 853ba2f..4ca2b2e 100644 --- a/PDFWriter.xcodeproj/project.pbxproj +++ b/PDFWriter.xcodeproj/project.pbxproj @@ -345,7 +345,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 11.0; - MARKETING_VERSION = 2.0.2; + MARKETING_VERSION = 2.0.3; PRODUCT_BUNDLE_IDENTIFIER = "au.rwts.PDFWriter-Utility"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -376,7 +376,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 11.0; - MARKETING_VERSION = 2.0.2; + MARKETING_VERSION = 2.0.3; PRODUCT_BUNDLE_IDENTIFIER = "au.rwts.PDFWriter-Utility"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; diff --git a/README.md b/README.md index 77c0f8f..0000887 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ An OSX print to pdf-file printer driver -### [![](https://raw.githubusercontent.com/rodyager/RWTS-PDFwriter/master/build/PDFwriter.iconset/icon_256x256.png "Click to download installer pkg") Click to download the installer pkg](https://github.com/rodyager/RWTS-PDFwriter/releases/download/v2.0.2/RWTS-PDFwriter.pkg) +### [![](https://raw.githubusercontent.com/rodyager/RWTS-PDFwriter/master/build/PDFwriter.iconset/icon_256x256.png "Click to download installer pkg") Click to download the installer pkg](https://github.com/rodyager/RWTS-PDFwriter/releases/download/v2.0.3/RWTS-PDFwriter.pkg) ## About RWTS PDFwriter **RWTS PDFwriter** is an OSX 11.0+ compatible print driver that enables you to “print” your documents directly to a pdf file. It has similar functionality to [CutePDF](http://www.cutepdf.com) on Windows. diff --git a/build/postinstall b/build/postinstall index fceb213..2ce757f 100755 --- a/build/postinstall +++ b/build/postinstall @@ -23,4 +23,6 @@ lpadmin -p PDFwriter -E -v pdfwriter:/ -P /Library/Printers/PPDs/Contents/Resour # open the Utility with correct environment uid=$(id -u "$USER") -launchctl asuser $uid su "$USER" -c "/Library/Printers/RWTS/Utilities/PDFWriter\ Utility.app/Contents/MacOS/PDFWriter\ Utility" +if [ $uid -ne 0 ]; then + launchctl asuser $uid su "$USER" -c "/Library/Printers/RWTS/Utilities/PDFWriter\ Utility.app/Contents/MacOS/PDFWriter\ Utility" +fi diff --git a/pdfwriter/pdfwriter.h b/pdfwriter/pdfwriter.h index da621ea..923fbb5 100644 --- a/pdfwriter/pdfwriter.h +++ b/pdfwriter/pdfwriter.h @@ -28,7 +28,7 @@ -#define VERSION "2.0.2" +#define VERSION "2.0.3" #define CPERROR 1 #define CPSTATUS 2