Page MenuHomePhabricator

D9901.diff
No OneTemporary

D9901.diff

diff --git a/src/util/system.cpp b/src/util/system.cpp
--- a/src/util/system.cpp
+++ b/src/util/system.cpp
@@ -321,6 +321,17 @@
for (int i = 1; i < argc; i++) {
std::string key(argv[i]);
+
+#ifdef MAC_OSX
+ // At the first time when a user gets the "App downloaded from the
+ // internet" warning, and clicks the Open button, macOS passes
+ // a unique process serial number (PSN) as -psn_... command-line
+ // argument, which we filter out.
+ if (key.substr(0, 5) == "-psn_") {
+ continue;
+ }
+#endif
+
if (key == "-") {
// bitcoin-tx using stdin
break;

File Metadata

Mime Type
text/plain
Expires
Sat, Mar 1, 11:42 (2 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5187668
Default Alt Text
D9901.diff (661 B)

Event Timeline