aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar emersion <contact@emersion.fr>2019-01-28 21:59:10 +0100
committerLibravatar emersion <contact@emersion.fr>2019-01-28 21:59:10 +0100
commit7c72327ab5a262b33890a3018280b558655a64a1 (patch)
treef50b3f5f1e56f61b321ec6313c6c3929a847b05c
parentCheck xdg_surface's role before using its toplevel (diff)
downloadsway-7c72327ab5a262b33890a3018280b558655a64a1.tar.gz
sway-7c72327ab5a262b33890a3018280b558655a64a1.tar.zst
sway-7c72327ab5a262b33890a3018280b558655a64a1.zip
Cleanup log_env
SWAY_CURSOR_* are not used anymore. LD_PRELOAD_PATH doesn't exist and has been replaced with LD_PRELOAD.
-rw-r--r--sway/main.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/sway/main.c b/sway/main.c
index 4a92b25a..c824a6fb 100644
--- a/sway/main.c
+++ b/sway/main.c
@@ -132,13 +132,10 @@ void run_as_ipc_client(char *command, char *socket_path) {
132 132
133static void log_env(void) { 133static void log_env(void) {
134 const char *log_vars[] = { 134 const char *log_vars[] = {
135 "PATH",
136 "LD_LIBRARY_PATH",
137 "LD_PRELOAD_PATH",
138 "LD_LIBRARY_PATH", 135 "LD_LIBRARY_PATH",
139 "SWAY_CURSOR_THEME", 136 "LD_PRELOAD",
140 "SWAY_CURSOR_SIZE", 137 "PATH",
141 "SWAYSOCK" 138 "SWAYSOCK",
142 }; 139 };
143 for (size_t i = 0; i < sizeof(log_vars) / sizeof(char *); ++i) { 140 for (size_t i = 0; i < sizeof(log_vars) / sizeof(char *); ++i) {
144 sway_log(SWAY_INFO, "%s=%s", log_vars[i], getenv(log_vars[i])); 141 sway_log(SWAY_INFO, "%s=%s", log_vars[i], getenv(log_vars[i]));