mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-01 03:40:09 +01:00
XQuartz: Move our logs into an X11 subdirectory
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
(cherry picked from commit 87939bf831)
This commit is contained in:
parent
5926ed85a1
commit
cdd704da19
1 changed files with 9 additions and 3 deletions
|
|
@ -56,6 +56,7 @@
|
|||
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/syslimits.h>
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
|
|
@ -650,9 +651,14 @@ OsVendorInit(void)
|
|||
char *home = getenv("HOME");
|
||||
|
||||
assert(home);
|
||||
assert(0 <
|
||||
asprintf(&lf, "%s/Library/Logs/%s.X11.log", home,
|
||||
bundle_id_prefix));
|
||||
|
||||
/* Ignore errors. If EEXIST, we don't care. If anything else,
|
||||
* LogInit will handle it for us.
|
||||
*/
|
||||
(void)mkdir(lf, S_IRWXU | S_IRWXG | S_IRWXO);
|
||||
free(lf);
|
||||
|
||||
assert(0 < asprintf(&lf, "%s/Library/Logs/X11/%s.log", home, bundle_id_prefix));
|
||||
LogInit(lf, ".old");
|
||||
free(lf);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue