|
|
@ -4,6 +4,7 @@
|
|
|
|
#include <wlc/wlc.h>
|
|
|
|
#include <wlc/wlc.h>
|
|
|
|
#include <sys/wait.h>
|
|
|
|
#include <sys/wait.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
|
|
|
#include <sys/un.h>
|
|
|
|
#include <signal.h>
|
|
|
|
#include <signal.h>
|
|
|
|
#include <getopt.h>
|
|
|
|
#include <getopt.h>
|
|
|
|
#include "layout.h"
|
|
|
|
#include "layout.h"
|
|
|
@ -105,8 +106,11 @@ int main(int argc, char **argv) {
|
|
|
|
case 'V': // verbose
|
|
|
|
case 'V': // verbose
|
|
|
|
verbose = 1;
|
|
|
|
verbose = 1;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 'p': // --get-socketpath
|
|
|
|
case 'p': ; // --get-socketpath
|
|
|
|
// TODO
|
|
|
|
struct sockaddr_un *ipc_sockaddr = ipc_user_sockaddr();
|
|
|
|
|
|
|
|
fprintf(stdout, "%s\n", ipc_sockaddr->sun_path);
|
|
|
|
|
|
|
|
free(ipc_sockaddr);
|
|
|
|
|
|
|
|
exit(0);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|