From a957acd893e83417ce8adb99134250083c1ef97a Mon Sep 17 00:00:00 2001 From: rustdesk Date: Fri, 25 Aug 2023 15:19:00 +0800 Subject: [PATCH] remove LSUIElement=1 in info.plist so that system menu can be shown --- build.py | 7 ------- flutter/macos/Runner/Info.plist | 2 -- 2 files changed, 9 deletions(-) diff --git a/build.py b/build.py index 73ea8186d..42dc8d6de 100755 --- a/build.py +++ b/build.py @@ -545,13 +545,6 @@ def main(): 'cp libsciter.dylib target/release/bundle/osx/RustDesk.app/Contents/MacOS/') # https://github.com/sindresorhus/create-dmg system2('/bin/rm -rf *.dmg') - plist = "target/release/bundle/osx/RustDesk.app/Contents/Info.plist" - txt = open(plist).read() - with open(plist, "wt") as fh: - fh.write(txt.replace("", """ - LSUIElement - 1 - """)) pa = os.environ.get('P') if pa: system2(''' diff --git a/flutter/macos/Runner/Info.plist b/flutter/macos/Runner/Info.plist index 96616e8c4..ff9322417 100644 --- a/flutter/macos/Runner/Info.plist +++ b/flutter/macos/Runner/Info.plist @@ -37,8 +37,6 @@ $(FLUTTER_BUILD_NUMBER) LSMinimumSystemVersion $(MACOSX_DEPLOYMENT_TARGET) - LSUIElement - 1 NSHumanReadableCopyright $(PRODUCT_COPYRIGHT) NSMainNibFile