MCPcopy Create free account
hub / github.com/OpenPrinting/cups / cupsdInitEnv

Function cupsdInitEnv

scheduler/env.c:39–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37 */
38
39void
40cupsdInitEnv(void)
41{
42 /*
43 * Clear existing environment variables...
44 */
45
46 clear_env();
47
48#if defined(__APPLE__)
49 /*
50 * Add special voodoo magic for macOS - this allows macOS
51 * programs to access their bundle resources properly...
52 *
53 * This string is replaced in cupsdStartProcess()...
54 */
55
56 cupsdSetString(common_env, "<CFProcessPath>");
57 num_common_env = 1;
58#endif /* __APPLE__ */
59}
60
61
62/*

Callers 1

cupsdReadConfigurationFunction · 0.85

Calls 2

clear_envFunction · 0.85
cupsdSetStringFunction · 0.85

Tested by

no test coverage detected