{"action":"created","issue":{"url":"https://api.github.com/repos/jagrosh/DiscordIPC/issues/16","repository_url":"https://api.github.com/repos/jagrosh/DiscordIPC","labels_url":"https://api.github.com/repos/jagrosh/DiscordIPC/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/jagrosh/DiscordIPC/issues/16/comments","events_url":"https://api.github.com/repos/jagrosh/DiscordIPC/issues/16/events","html_url":"https://github.com/jagrosh/DiscordIPC/issues/16","id":395937042,"node_id":"MDU6SXNzdWUzOTU5MzcwNDI=","number":16,"title":"README example is broken in Ubuntu","user":{"login":"MrPowerGamerBR","id":9496359,"node_id":"MDQ6VXNlcjk0OTYzNTk=","avatar_url":"https://avatars3.githubusercontent.com/u/9496359?v=4","gravatar_id":"","url":"https://api.github.com/users/MrPowerGamerBR","html_url":"https://github.com/MrPowerGamerBR","followers_url":"https://api.github.com/users/MrPowerGamerBR/followers","following_url":"https://api.github.com/users/MrPowerGamerBR/following{/other_user}","gists_url":"https://api.github.com/users/MrPowerGamerBR/gists{/gist_id}","starred_url":"https://api.github.com/users/MrPowerGamerBR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrPowerGamerBR/subscriptions","organizations_url":"https://api.github.com/users/MrPowerGamerBR/orgs","repos_url":"https://api.github.com/users/MrPowerGamerBR/repos","events_url":"https://api.github.com/users/MrPowerGamerBR/events{/privacy}","received_events_url":"https://api.github.com/users/MrPowerGamerBR/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2019-01-04T14:06:22Z","updated_at":"2019-01-05T02:17:32Z","closed_at":null,"author_association":"NONE","body":"```kotlin\r\nobject Main {\r\n    @JvmStatic\r\n    fun main(args: Array<String>) {\r\n        val client = IPCClient(384465696496549888L)\r\n        client.setListener(object : IPCListener {\r\n            override fun onReady(client: IPCClient?) {\r\n                val builder = RichPresence.Builder()\r\n                builder.setState(\"West of House\")\r\n                    .setDetails(\"Frustration level: Over 9000\")\r\n                    .setStartTimestamp(OffsetDateTime.now())\r\n                    .setLargeImage(\"canary-large\", \"Discord Canary\")\r\n                    .setSmallImage(\"ptb-small\", \"Discord PTB\")\r\n                    .setParty(\"party1234\", 1, 6)\r\n                    .setMatchSecret(\"xyzzy\")\r\n                    .setJoinSecret(\"join\")\r\n                    .setSpectateSecret(\"look\")\r\n                client!!.sendRichPresence(builder.build())\r\n            }\r\n        })\r\n        client.connect()\r\n    }\r\n}\r\n```\r\n\r\n```\r\nException in thread \"main\" java.lang.RuntimeException: java.net.SocketException: Socket file not found: /run/user/1000/snap.intellij-idea-community/discord-ipc-0\r\n\tat com.jagrosh.discordipc.entities.pipe.Pipe.createPipe(Pipe.java:167)\r\n\tat com.jagrosh.discordipc.entities.pipe.Pipe.openPipe(Pipe.java:67)\r\n\tat com.jagrosh.discordipc.IPCClient.connect(IPCClient.java:116)\r\n\tat com.mrpowergamerbr.powerrp.Main.main(Main.kt:34)\r\nCaused by: java.net.SocketException: Socket file not found: /run/user/1000/snap.intellij-idea-community/discord-ipc-0\r\n\tat org.newsclub.net.unix.AFUNIXSocketImpl.validateSocketFile(AFUNIXSocketImpl.java:164)\r\n\tat org.newsclub.net.unix.AFUNIXSocketImpl.connect(AFUNIXSocketImpl.java:154)\r\n\tat org.newsclub.net.unix.AFUNIXSocket.connect(AFUNIXSocket.java:138)\r\n\tat org.newsclub.net.unix.AFUNIXSocket.connect(AFUNIXSocket.java:117)\r\n\tat com.jagrosh.discordipc.entities.pipe.UnixPipe.<init>(UnixPipe.java:46)\r\n\tat com.jagrosh.discordipc.entities.pipe.Pipe.createPipe(Pipe.java:163)\r\n\t... 3 more\r\n```\r\n\r\nI'm running the code directly from IDEA, maybe that's why it isn't working? Discord's IPC socket is in `./run/user/1000/discord-ipc-0` on my system"},"comment":{"url":"https://api.github.com/repos/jagrosh/DiscordIPC/issues/comments/451619857","html_url":"https://github.com/jagrosh/DiscordIPC/issues/16#issuecomment-451619857","issue_url":"https://api.github.com/repos/jagrosh/DiscordIPC/issues/16","id":451619857,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTYxOTg1Nw==","user":{"login":"Shengaero","id":24610817,"node_id":"MDQ6VXNlcjI0NjEwODE3","avatar_url":"https://avatars3.githubusercontent.com/u/24610817?v=4","gravatar_id":"","url":"https://api.github.com/users/Shengaero","html_url":"https://github.com/Shengaero","followers_url":"https://api.github.com/users/Shengaero/followers","following_url":"https://api.github.com/users/Shengaero/following{/other_user}","gists_url":"https://api.github.com/users/Shengaero/gists{/gist_id}","starred_url":"https://api.github.com/users/Shengaero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shengaero/subscriptions","organizations_url":"https://api.github.com/users/Shengaero/orgs","repos_url":"https://api.github.com/users/Shengaero/repos","events_url":"https://api.github.com/users/Shengaero/events{/privacy}","received_events_url":"https://api.github.com/users/Shengaero/received_events","type":"User","site_admin":false},"created_at":"2019-01-05T02:17:32Z","updated_at":"2019-01-05T02:17:32Z","author_association":"COLLABORATOR","body":"It seems like it's an [ubuntu related thing](https://askubuntu.com/questions/872792/what-is-xdg-runtime-dir).\r\n"}}
{"actor":{"display_login":"Shengaero"}}