| 37 | */ |
| 38 | |
| 39 | void |
| 40 | cupsdInitEnv(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 | /* |
no test coverage detected