We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4a99ae commit b2b97b7Copy full SHA for b2b97b7
cups/globals.c
@@ -314,9 +314,12 @@ cups_globals_alloc(void)
314
if ((cg->localedir = getenv("LOCALEDIR")) == NULL)
315
cg->localedir = CUPS_LOCALEDIR;
316
317
-# ifndef __APPLE__ /* Sandboxing now exposes the container as the home directory */
318
cg->home = getenv("HOME");
319
-#endif /* !__APPLE__ */
+
+# ifdef __APPLE__ /* Sandboxing now exposes the container as the home directory */
320
+ if (cg->home && strstr(cg->home, "/Library/Containers/"))
321
+ cg->home = NULL;
322
+# endif /* !__APPLE__ */
323
}
324
325
if (!cg->home)
0 commit comments