shmlog: store meta information in the buffer itself, store path as X11 atom
This makes i3-dump-log completely independent of a running i3 instance.
This commit is contained in:
@ -342,7 +342,7 @@ int main(int argc, char *argv[]) {
|
||||
printf("using format \"%s\"\n", format);
|
||||
|
||||
if (socket_path == NULL)
|
||||
socket_path = socket_path_from_x11();
|
||||
socket_path = root_atom_contents("I3_SOCKET_PATH");
|
||||
|
||||
if (socket_path == NULL)
|
||||
socket_path = "/tmp/i3-ipc.sock";
|
||||
|
Reference in New Issue
Block a user