Use I3SOCK environment-variable
This commit is contained in:
@ -113,7 +113,7 @@ void sig_cb(struct ev_loop *loop, ev_signal *watcher, int revents) {
|
||||
int main(int argc, char **argv) {
|
||||
int opt;
|
||||
int option_index = 0;
|
||||
char *socket_path = NULL;
|
||||
char *socket_path = getenv("I3SOCK");
|
||||
char *command = NULL;
|
||||
char *fontname = NULL;
|
||||
char *i3_default_sock_path = "~/.i3/ipc.sock";
|
||||
@ -247,8 +247,6 @@ int main(int argc, char **argv) {
|
||||
|
||||
kill_child();
|
||||
|
||||
FREE(socket_path);
|
||||
|
||||
FREE(statusline_buffer);
|
||||
|
||||
clean_xcb();
|
||||
|
Reference in New Issue
Block a user