Skip to content

Commit

Permalink
applicationSupportsSecureRestorableState returns NO + bumped all depl…
Browse files Browse the repository at this point in the history
…oyment targets to macOS 10.13
  • Loading branch information
sveinbjornt committed Apr 24, 2024
1 parent 636a571 commit 7f31d5d
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Application/PlatypusWindowController.m
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ - (BOOL)application:(NSApplication *)theApplication openFile:(NSString *)filenam
}

- (BOOL)applicationSupportsSecureRestorableState:(NSApplication *)app {
return YES;
return NO;
}

#pragma mark - NSWindowDelegate
Expand Down
2 changes: 1 addition & 1 deletion Application/Resources/Platypus-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1262</string>
<string>1264</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.developer-tools</string>
<key>LSMinimumSystemVersion</key>
Expand Down
6 changes: 6 additions & 0 deletions Platypus.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1909,6 +1909,7 @@
buildSettings = {
CLANG_ENABLE_OBJC_WEAK = YES;
DEAD_CODE_STRIPPING = YES;
MACOSX_DEPLOYMENT_TARGET = 10.13;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Development;
Expand All @@ -1918,6 +1919,7 @@
buildSettings = {
CLANG_ENABLE_OBJC_WEAK = YES;
DEAD_CODE_STRIPPING = YES;
MACOSX_DEPLOYMENT_TARGET = 10.13;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Deployment;
Expand All @@ -1927,6 +1929,7 @@
buildSettings = {
CLANG_ENABLE_OBJC_WEAK = YES;
DEAD_CODE_STRIPPING = YES;
MACOSX_DEPLOYMENT_TARGET = 10.13;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Default;
Expand Down Expand Up @@ -2025,6 +2028,7 @@
buildSettings = {
CLANG_ENABLE_OBJC_WEAK = YES;
DEAD_CODE_STRIPPING = YES;
MACOSX_DEPLOYMENT_TARGET = 10.13;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Development;
Expand All @@ -2034,6 +2038,7 @@
buildSettings = {
CLANG_ENABLE_OBJC_WEAK = YES;
DEAD_CODE_STRIPPING = YES;
MACOSX_DEPLOYMENT_TARGET = 10.13;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Deployment;
Expand All @@ -2043,6 +2048,7 @@
buildSettings = {
CLANG_ENABLE_OBJC_WEAK = YES;
DEAD_CODE_STRIPPING = YES;
MACOSX_DEPLOYMENT_TARGET = 10.13;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Default;
Expand Down
2 changes: 1 addition & 1 deletion ScriptExec/Resources/AppSettings.plist
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<key>Creator</key>
<string>Platypus-5.4.2</string>
<key>InterfaceType</key>
<string>Text Window</string>
<string>Web View</string>
<key>URISchemes</key>
<array/>
<key>InterpreterArgs</key>
Expand Down
2 changes: 1 addition & 1 deletion ScriptExec/Resources/script
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

echo "LOCATION: http://example.com\n"
echo "LOCATION:http://example.com\n"


#echo "SUBMENU|Title|Item1|Item2|Item3"
Expand Down
4 changes: 4 additions & 0 deletions ScriptExec/SEController.m
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,10 @@ - (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sende
return NSTerminateNow;
}

- (BOOL)applicationSupportsSecureRestorableState:(NSApplication *)app {
return NO;
}

#pragma mark - NSWindowDelegate

- (void)windowWillClose:(NSNotification *)notification {
Expand Down

0 comments on commit 7f31d5d

Please sign in to comment.