{"action":"created","issue":{"url":"https://api.github.com/repos/SirCmpwn/sway/issues/193","labels_url":"https://api.github.com/repos/SirCmpwn/sway/issues/193/labels{/name}","comments_url":"https://api.github.com/repos/SirCmpwn/sway/issues/193/comments","events_url":"https://api.github.com/repos/SirCmpwn/sway/issues/193/events","html_url":"https://github.com/SirCmpwn/sway/pull/193","id":111803239,"number":193,"title":"Multi user","user":{"login":"sce","id":151892,"avatar_url":"https://avatars.githubusercontent.com/u/151892?v=3","gravatar_id":"","url":"https://api.github.com/users/sce","html_url":"https://github.com/sce","followers_url":"https://api.github.com/users/sce/followers","following_url":"https://api.github.com/users/sce/following{/other_user}","gists_url":"https://api.github.com/users/sce/gists{/gist_id}","starred_url":"https://api.github.com/users/sce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sce/subscriptions","organizations_url":"https://api.github.com/users/sce/orgs","repos_url":"https://api.github.com/users/sce/repos","events_url":"https://api.github.com/users/sce/events{/privacy}","received_events_url":"https://api.github.com/users/sce/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-16T10:21:47Z","updated_at":"2015-10-16T11:10:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/SirCmpwn/sway/pulls/193","html_url":"https://github.com/SirCmpwn/sway/pull/193","diff_url":"https://github.com/SirCmpwn/sway/pull/193.diff","patch_url":"https://github.com/SirCmpwn/sway/pull/193.patch"},"body":"If multiple users try to use sway at the same time the identically named ipc socket will prevent anyone other than the first user to actually run sway.\r\n\r\nThis patch fixes that by adding the user id to the socket path.\r\n\r\nNote: I have no idea what I'm actually doing, please review carefully before pulling and please excuse any obvious errors I might have made ...\r\n\r\n(Also, when using logind the path should actually be something like `/var/run/user/<id>/sway-ipc.socket`, but this patch is anyway an improvement.)"},"comment":{"url":"https://api.github.com/repos/SirCmpwn/sway/issues/comments/148685999","html_url":"https://github.com/SirCmpwn/sway/pull/193#issuecomment-148685999","issue_url":"https://api.github.com/repos/SirCmpwn/sway/issues/193","id":148685999,"user":{"login":"sce","id":151892,"avatar_url":"https://avatars.githubusercontent.com/u/151892?v=3","gravatar_id":"","url":"https://api.github.com/users/sce","html_url":"https://github.com/sce","followers_url":"https://api.github.com/users/sce/followers","following_url":"https://api.github.com/users/sce/following{/other_user}","gists_url":"https://api.github.com/users/sce/gists{/gist_id}","starred_url":"https://api.github.com/users/sce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sce/subscriptions","organizations_url":"https://api.github.com/users/sce/orgs","repos_url":"https://api.github.com/users/sce/repos","events_url":"https://api.github.com/users/sce/events{/privacy}","received_events_url":"https://api.github.com/users/sce/received_events","type":"User","site_admin":false},"created_at":"2015-10-16T11:10:15Z","updated_at":"2015-10-16T11:10:15Z","body":"When using `sway_assert` I just return `NULL` like the other code in sway seems to be doing. I don't actually know the effects of that though (e.g. the code I added to `ipc_init` doesn't take such a scenario into account...)"}}