Merge pull request #3528 from emersion/cleanup-log-env

Cleanup log_env
This commit is contained in:
Drew DeVault 2019-01-28 16:06:12 -05:00 committed by GitHub
commit 22237e0b42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -132,13 +132,10 @@ void run_as_ipc_client(char *command, char *socket_path) {
static void log_env(void) { static void log_env(void) {
const char *log_vars[] = { const char *log_vars[] = {
"LD_LIBRARY_PATH",
"LD_PRELOAD",
"PATH", "PATH",
"LD_LIBRARY_PATH", "SWAYSOCK",
"LD_PRELOAD_PATH",
"LD_LIBRARY_PATH",
"SWAY_CURSOR_THEME",
"SWAY_CURSOR_SIZE",
"SWAYSOCK"
}; };
for (size_t i = 0; i < sizeof(log_vars) / sizeof(char *); ++i) { for (size_t i = 0; i < sizeof(log_vars) / sizeof(char *); ++i) {
sway_log(SWAY_INFO, "%s=%s", log_vars[i], getenv(log_vars[i])); sway_log(SWAY_INFO, "%s=%s", log_vars[i], getenv(log_vars[i]));