From a2d0bb9ef69bb5d677d177d91dd9ad414b915436 Mon Sep 17 00:00:00 2001 From: Anu Aliyas Date: Tue, 25 Apr 2023 13:51:14 +0200 Subject: Don't show QtWebEngineProcess in the dock MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Added Info_mac.plist.in file - Set the LSUIElement key in Info_mac.plist.in to prevent seeing a jumping icon in the dock while the OS waits for the QtWebEngineProcess to create a window. - Set MACOSX_BUNDLE_INFO_PLIST to Info_mac.plist.in Fixes: QTBUG-112700 Change-Id: Ibd1dcc399ce440236b1d9b474191e3fc2f5c8ffc Reviewed-by: Michael BrĂ¼ning --- src/process/CMakeLists.txt | 1 + src/process/Info_mac.plist.in | 44 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 src/process/Info_mac.plist.in (limited to 'src') diff --git a/src/process/CMakeLists.txt b/src/process/CMakeLists.txt index 4c283da11..63783af69 100644 --- a/src/process/CMakeLists.txt +++ b/src/process/CMakeLists.txt @@ -69,6 +69,7 @@ if(isFramework) set_target_properties(${qtWebEngineProcessName} PROPERTIES MACOSX_BUNDLE TRUE INSTALL_RPATH "@loader_path/../../../../../../../" + MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/Info_mac.plist.in" ) target_sources(${qtWebEngineProcessName} PRIVATE QtWebEngineProcess.entitlements) diff --git a/src/process/Info_mac.plist.in b/src/process/Info_mac.plist.in new file mode 100644 index 000000000..22c8c026d --- /dev/null +++ b/src/process/Info_mac.plist.in @@ -0,0 +1,44 @@ + + + + + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + APPL + + CFBundleName + ${MACOSX_BUNDLE_BUNDLE_NAME} + CFBundleIdentifier + ${MACOSX_BUNDLE_GUI_IDENTIFIER} + CFBundleExecutable + ${MACOSX_BUNDLE_EXECUTABLE_NAME} + + CFBundleVersion + ${MACOSX_BUNDLE_BUNDLE_VERSION} + CFBundleShortVersionString + ${MACOSX_BUNDLE_SHORT_VERSION_STRING} + + LSMinimumSystemVersion + ${CMAKE_OSX_DEPLOYMENT_TARGET} + + NSHumanReadableCopyright + ${MACOSX_BUNDLE_COPYRIGHT} + + CFBundleIconFile + ${MACOSX_BUNDLE_ICON_FILE} + + CFBundleDevelopmentRegion + en + CFBundleAllowMixedLocalizations + + + NSPrincipalClass + NSApplication + + NSSupportsAutomaticGraphicsSwitching + + LSUIElement + + + -- cgit v1.2.1