Differences From
Artifact [2cfcd5a554]:
92 92 char* end = stpncpy(srv.sun_path, run, sizeof srv.sun_path);
93 93 end = stpncpy(end, ssz("/qutebrowser/"));
94 94 DIR* qb = opendir(srv.sun_path);
95 95 if (!qb) return start_instance;
96 96 struct dirent* ent;
97 97 while (ent = readdir(qb)) {
98 98 if (ent == NULL) return start_instance;
99 - if (ent -> d_name[0] != '.') break;
99 + if (strncmp(ent -> d_name, "ipc-", 4) == 0) break;
100 100 }
101 101 if (ent == NULL) return start_instance;
102 102 end = stpncpy(end, ent->d_name,
103 103 (sizeof srv.sun_path) - (end - srv.sun_path));
104 104 closedir(qb);
105 105 }
106 106