Skip to content

Commit 39ce5d1

Browse files
Fix Macos Dock showing icon (flameshot-org#4095)
1 parent 7fd103c commit 39ce5d1

File tree

4 files changed

+35
-46
lines changed

4 files changed

+35
-46
lines changed

cmake/modules/MacOSXBundleInfo.plist.in

Lines changed: 0 additions & 46 deletions
This file was deleted.

packaging/macos/Info.plist.in

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleExecutable</key>
6+
<string>${MACOSX_BUNDLE_EXECUTABLE_NAME}</string>
7+
<key>CFBundleIconFile</key>
8+
<string>flameshot</string>
9+
<key>CFBundleIdentifier</key>
10+
<string>${MACOSX_BUNDLE_GUI_IDENTIFIER}</string>
11+
<key>CFBundleName</key>
12+
<string>${MACOSX_BUNDLE_BUNDLE_NAME}</string>
13+
<key>CFBundleDisplayName</key>
14+
<string>${MACOSX_BUNDLE_BUNDLE_NAME}</string>
15+
<key>CFBundleVersion</key>
16+
<string>${MACOSX_BUNDLE_BUNDLE_VERSION}</string>
17+
<key>CFBundleShortVersionString</key>
18+
<string>${MACOSX_BUNDLE_SHORT_VERSION_STRING}</string>
19+
<key>CFBundlePackageType</key>
20+
<string>APPL</string>
21+
<key>CFBundleSignature</key>
22+
<string>????</string>
23+
<key>CFBundleInfoDictionaryVersion</key>
24+
<string>6.0</string>
25+
<key>LSMinimumSystemVersion</key>
26+
<string>${CMAKE_OSX_DEPLOYMENT_TARGET}</string>
27+
<key>NSHighResolutionCapable</key>
28+
<true/>
29+
<key>LSUIElement</key>
30+
<true/>
31+
</dict>
32+
</plist>

packaging/macos/flameshot.icns

8.31 KB
Binary file not shown.

src/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,9 @@ if (APPLE)
238238
MACOSX_BUNDLE_IDENTIFIER "org.flameshot.Flameshot"
239239
MACOSX_BUNDLE_GUI_IDENTIFIER "org.flameshot.Flameshot"
240240
)
241+
set_property(TARGET flameshot PROPERTY
242+
MACOSX_BUNDLE_INFO_PLIST ${CMAKE_SOURCE_DIR}/packaging/macos/Info.plist.in
243+
)
241244
target_link_libraries(
242245
flameshot
243246
qhotkey

0 commit comments

Comments
 (0)