Use I3SOCK-environment-variable

This commit is contained in:
Axel Wagner
2011-01-11 04:39:48 +01:00
committed by Michael Stapelberg
parent cd2ee61ee8
commit 4caf85aa0b
8 changed files with 42 additions and 4 deletions

View File

@ -99,6 +99,8 @@ int main(int argc, char *argv[]) {
if (!isatty(fileno(stdout)))
setbuf(stdout, NULL);
config.ipc_socket_path = getenv("I3SOCK");
start_argv = argv;
while ((opt = getopt_long(argc, argv, "c:CvaL:hld:V", long_options, &option_index)) != -1) {