|
|
@ -90,7 +90,7 @@ int main(int argc, char **argv) {
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
fprintf(stdout, "version not detected\n");
|
|
|
|
fprintf(stdout, "version not detected\n");
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
exit(0);
|
|
|
|
exit(EXIT_SUCCESS);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 'V': // verbose
|
|
|
|
case 'V': // verbose
|
|
|
|
verbose = 1;
|
|
|
|
verbose = 1;
|
|
|
@ -98,10 +98,10 @@ int main(int argc, char **argv) {
|
|
|
|
case 'p': ; // --get-socketpath
|
|
|
|
case 'p': ; // --get-socketpath
|
|
|
|
if (getenv("SWAYSOCK")) {
|
|
|
|
if (getenv("SWAYSOCK")) {
|
|
|
|
fprintf(stdout, "%s\n", getenv("SWAYSOCK"));
|
|
|
|
fprintf(stdout, "%s\n", getenv("SWAYSOCK"));
|
|
|
|
exit(0);
|
|
|
|
exit(EXIT_SUCCESS);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
fprintf(stderr, "sway socket not detected.\n");
|
|
|
|
fprintf(stderr, "sway socket not detected.\n");
|
|
|
|
exit(1);
|
|
|
|
exit(EXIT_FAILURE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|