Cleanup log_env

SWAY_CURSOR_* are not used anymore. LD_PRELOAD_PATH doesn't exist and has been
replaced with LD_PRELOAD.
This commit is contained in:
emersion 2019-01-28 21:59:10 +01:00
parent 7c27d73b02
commit 7c72327ab5
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48

View file

@ -132,13 +132,10 @@ void run_as_ipc_client(char *command, char *socket_path) {
static void log_env(void) {
const char *log_vars[] = {
"LD_LIBRARY_PATH",
"LD_PRELOAD",
"PATH",
"LD_LIBRARY_PATH",
"LD_PRELOAD_PATH",
"LD_LIBRARY_PATH",
"SWAY_CURSOR_THEME",
"SWAY_CURSOR_SIZE",
"SWAYSOCK"
"SWAYSOCK",
};
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]));