this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Make LSRegisterURL stub silent without STUB_VERBOSE

+8 -1
+8 -1
src/frameworks/CoreServices/src/LaunchServices/LaunchServices.c
··· 25 25 26 26 static void get_main_executable_info(CFURLRef appURL, CFStringRef *exec, CFStringRef *bundleName); 27 27 28 + static int verbose = 0; 29 + 30 + __attribute__((constructor)) static void initme(void) { 31 + verbose = getenv("STUB_VERBOSE") != NULL; 32 + } 33 + 28 34 OSStatus LSRegisterURL(CFURLRef inURL, Boolean inUpdate) 29 35 { 30 - printf("STUB: LSRegisterURL\n"); 36 + if (verbose) 37 + printf("STUB: LSRegisterURL\n"); 31 38 return 0; 32 39 } 33 40