@@ -1,8 +1,9 @@ /* [ʞ] newtab.c * ~ lexi hale * $ cc -Ofast newtab.c -onewtab \ - * [-D_default_qutebrowser_location=/...] + * [-D_default_qutebrowser_location=/...] \ + * [-D_enable_vblank] * $ ./newtab [example.net] * © AGPLv3 * ? may god have mercy on my soul. * i wrote this because qutebrowser, being a python @@ -93,9 +94,9 @@ end = stpncpy(end, ssz("/qutebrowser/")); DIR* qb = opendir(srv.sun_path); if (!qb) return start_instance; struct dirent* ent; - while (ent = readdir(qb)) { + while ((ent = readdir(qb))) { if (ent == NULL) return start_instance; if (strncmp(ent -> d_name, "ipc-", 4) == 0) break; } if (ent == NULL) return start_instance; @@ -137,8 +138,11 @@ const char* uri = argc < 2 ? NULL : argv[1]; enum status st = transmit(uri); if (st == start_instance) { if (!fork()) { +# ifndef _enable_vblank + setenv("vblank_mode","0",0); +# endif execl(dupl(_default_qutebrowser_location), uri, NULL); execl(dupl("/usr/local/bin/qutebrowser"), uri, NULL); execlp(dupl("qutebrowser"), uri, NULL); st = fail_find;