Index: newtab.c ================================================================== --- newtab.c +++ newtab.c @@ -94,11 +94,11 @@ DIR* qb = opendir(srv.sun_path); if (!qb) return start_instance; struct dirent* ent; while (ent = readdir(qb)) { if (ent == NULL) return start_instance; - if (ent -> d_name[0] != '.') break; + if (strncmp(ent -> d_name, "ipc-", 4) == 0) break; } if (ent == NULL) return start_instance; end = stpncpy(end, ent->d_name, (sizeof srv.sun_path) - (end - srv.sun_path)); closedir(qb);