summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnu Aliyas <anu.aliyas@qt.io>2023-04-25 13:51:14 +0200
committerAnu Aliyas <anu.aliyas@qt.io>2023-04-26 09:50:59 +0200
commita2d0bb9ef69bb5d677d177d91dd9ad414b915436 (patch)
treeedc0b081487cd2fba06f14d9d28b7a233945fa97
parent2d1506e345df8be568d6ece2cfb7c461dcbeebc0 (diff)
downloadqtwebengine-a2d0bb9ef69bb5d677d177d91dd9ad414b915436.tar.gz
Don't show QtWebEngineProcess in the dock
- 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 <michael.bruning@qt.io>
-rw-r--r--src/process/CMakeLists.txt1
-rw-r--r--src/process/Info_mac.plist.in44
2 files changed, 45 insertions, 0 deletions
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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+
+ <key>CFBundleName</key>
+ <string>${MACOSX_BUNDLE_BUNDLE_NAME}</string>
+ <key>CFBundleIdentifier</key>
+ <string>${MACOSX_BUNDLE_GUI_IDENTIFIER}</string>
+ <key>CFBundleExecutable</key>
+ <string>${MACOSX_BUNDLE_EXECUTABLE_NAME}</string>
+
+ <key>CFBundleVersion</key>
+ <string>${MACOSX_BUNDLE_BUNDLE_VERSION}</string>
+ <key>CFBundleShortVersionString</key>
+ <string>${MACOSX_BUNDLE_SHORT_VERSION_STRING}</string>
+
+ <key>LSMinimumSystemVersion</key>
+ <string>${CMAKE_OSX_DEPLOYMENT_TARGET}</string>
+
+ <key>NSHumanReadableCopyright</key>
+ <string>${MACOSX_BUNDLE_COPYRIGHT}</string>
+
+ <key>CFBundleIconFile</key>
+ <string>${MACOSX_BUNDLE_ICON_FILE}</string>
+
+ <key>CFBundleDevelopmentRegion</key>
+ <string>en</string>
+ <key>CFBundleAllowMixedLocalizations</key>
+ <true/>
+
+ <key>NSPrincipalClass</key>
+ <string>NSApplication</string>
+
+ <key>NSSupportsAutomaticGraphicsSwitching</key>
+ <true/>
+ <key>LSUIElement</key>
+ <true/>
+</dict>
+</plist>