aboutsummaryrefslogtreecommitdiffstats
path: root/sway/main.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2016-12-02 10:23:30 -0500
committerLibravatar Drew DeVault <sir@cmpwn.com>2016-12-02 10:23:30 -0500
commita4e92ad2723a9c33c029f90f8a2af054bf74e1ce (patch)
tree1fbfcc200c3b9dab244e0b2227327b1fdc7c66b1 /sway/main.c
parentClarify when keyboard/mouse features work (diff)
downloadsway-a4e92ad2723a9c33c029f90f8a2af054bf74e1ce.tar.gz
sway-a4e92ad2723a9c33c029f90f8a2af054bf74e1ce.tar.zst
sway-a4e92ad2723a9c33c029f90f8a2af054bf74e1ce.zip
Deal with LD_LIBRARY_PATH
Diffstat (limited to 'sway/main.c')
-rw-r--r--sway/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/main.c b/sway/main.c
index 1db88da2..9746cfb2 100644
--- a/sway/main.c
+++ b/sway/main.c
@@ -220,7 +220,9 @@ int main(int argc, char **argv) {
220 " --get-socketpath Gets the IPC socket path and prints it, then exits.\n" 220 " --get-socketpath Gets the IPC socket path and prints it, then exits.\n"
221 "\n"; 221 "\n";
222 222
223 unsetenv("LD_PRELOAD"); // Security 223 // Security:
224 unsetenv("LD_PRELOAD");
225 setenv("LD_LIBRARY_PATH", _LD_LIBRARY_PATH, 1);
224 226
225 int c; 227 int c;
226 while (1) { 228 while (1) {