mirror of
https://github.com/mpv-player/mpv
synced 2025-04-01 23:00:41 +00:00
cocoa: fix opening quarantined files on 10.9 with the bundle [2]
Fixup commit for bbc146927
This commit is contained in:
parent
60aea74f44
commit
96432241bd
@ -463,8 +463,8 @@ static bool bundle_started_from_finder(int argc, char **argv)
|
|||||||
bool bundle_detected = [[NSBundle mainBundle] bundleIdentifier];
|
bool bundle_detected = [[NSBundle mainBundle] bundleIdentifier];
|
||||||
int major, minor, bugfix;
|
int major, minor, bugfix;
|
||||||
get_system_version(&major, &minor, &bugfix);
|
get_system_version(&major, &minor, &bugfix);
|
||||||
bool with_psn = bundle_detected && argc==1;
|
bool without_psn = bundle_detected && argc==1;
|
||||||
bool without_psn = bundle_detected && argc==2 && is_psn_argument(argv[1]);
|
bool with_psn = bundle_detected && argc==2 && is_psn_argument(argv[1]);
|
||||||
|
|
||||||
if ((major == 10) && (minor >= 9)) {
|
if ((major == 10) && (minor >= 9)) {
|
||||||
// Looks like opening quarantined files from the finder inserts the
|
// Looks like opening quarantined files from the finder inserts the
|
||||||
|
Loading…
Reference in New Issue
Block a user